Questions tagged [horizon]
For questions regarding the Horizon API.
246
questions
2
votes
0
answers
46
views
How to see "order-book" of a liquidity pool?
I've been watching trading activity on yETH/XLM market today and realized that while the orderbook API (i.e. stream from horizon.stellar.org/order_book) keeps returning order-books with very wide ...
2
votes
0
answers
16
views
Can Horizon reconnect to its database on brief network outage?
We run a remote Postgres database on our Horizon instance, and on several occasions we would lose connection to the database server briefly (cause still being investigated). This drops our connection ...
2
votes
1
answer
87
views
Horizon captive core disk requirements and practice
Having installed and ran horizon with captive-core, it seems that memory consumption is stable (~ 4.5 G). The disk space is though increasing while transactions keep coming. Around 10G/day.
From my ...
2
votes
1
answer
137
views
List of Anchors for Sep31 and SEP24?
Is there a list of anchors available that I can access to see if I'm interested in using any of them? It is proving rather tedious to find anchors through a google search. I am already making API ...
2
votes
0
answers
71
views
Docker quickstart - Error ingesting history archive: ledger does not exists
I'm trying to run the quickstart docker tutorial but I am getting a 503 still ingesting when access the accounts/ACCOUNT_ID on my localhost:8000 (horizon).
Looking over my horizon logs I keep ...
2
votes
1
answer
245
views
`tx_bad_auth` when submit transaction to TestNet
I submit a transaction to the TestNet by using the official horizon API (https://horizon-testnet.stellar.org/), and it returns tx_bad_auth.
This is my code:
Server server = new Server("...
2
votes
0
answers
75
views
horizon ingest_latest_ledger doesn't update
I just run a new horizon instance.
The horizon instance with Ingest=true is running this command: horizon db reingest range 1 latest && horizon serve
I can see the history_latest_ledger ...
2
votes
1
answer
96
views
Too many open files from horizon
After sending few request to horizon or running horizon for sometime, getting too many open files:443 error. Then I have restarted the horizon then above error is removed.Is there any configuration I ...
2
votes
0
answers
74
views
Is the Horizon Testnet Currently down? [closed]
Is the testnet currently functional? Is there an official status website or organisation that issues announcements related to the status of the testnet regarding downtimes, resets or outages?
Thanks ...
2
votes
0
answers
96
views
History buckets not found in history.stellar.org
After update to stellar-core 10.0.0rc4 I got history issue. Synchronization is stuck.
Here is errors:
2018-09-14T14:08:36.090 GCUCN [default INFO] Loading last known ledger
2018-09-14T14:10:19....
2
votes
0
answers
240
views
How to resolve 500 Internal Server Error on /transactions/<hash>/operations?
My node returns an error when I query the /operations endpoint in horizon.
curl http://127.0.0.1:8000/transactions/73ce2618095d2c17bdaf08a6a6617cef549f974b1619f03b84eb46747e5e4eb0/operations
{
"...
2
votes
0
answers
121
views
Horizon Error 6
I'm using the iOS SDK to attempt to submit a testnet transaction, but it fails with error 6, which I believe is BAD_AUTH, too few valid signatures/ wrong network.
Here is my code:
static func ...
2
votes
2
answers
95
views
MEMO N/A after submitting to bridge endpoint /builder
curl -X POST \
http://localhost:8006/builder \
-H 'Content-Type: application/json' \
-d '{
"source": "GBJ6ONYK73A65BRW7SOGQYEDCN55NCYDH5WJTE7WZIZXF3RRX2GFI33T",
"memo": {
"text": "...
2
votes
1
answer
88
views
Trustline Created At from Horizon Database
I try to find when is trustline to an asset is created in horizon database. I joining history_effects, history_accounts, history_operations and history_transactions. I got created_at field on ...
2
votes
1
answer
235
views
How does the Bridge server get notified by Horizon after submitting a transaction and Compliance Server is also present?
I am trying to understand how the Bridge server gets notified by Horizon after a payment has been completed. Assuming an Anchor set up with Bridge, Compliance and Federation servers, my understanding ...
2
votes
1
answer
63
views
How to disambiguate signer types in operation json
The set_options operation JSON returned by Horizon does not disambiguate between signer_keys of different types (hash, signed txn hash, account).
// sha256 hash
"signer_key": "...
1
vote
1
answer
490
views
If one operation is wrong then the whole transaction is wrong
Found such a problem if one operation is wrong then the whole transaction is wrong.
ZuluCrypto\StellarSdk\Horizon\Api\PostTransactionResponse Object
(
[result:protected] =>
[rawData:...
1
vote
2
answers
94
views
How Horizon makes use of stelar-core?
By definition Horizon acts as the interface between stellar-core and applications, and apparently it needs access ... HTTP API that is published by stellar-core.
Is there a place where this API is ...
1
vote
2
answers
59
views
How do I return more than 200 entities at a time from Horizon?
I am running my own stellar node and horizon instance. When I try to get over 200 entities at once I get the error
curl -X GET "http://localhost:8000/transactions?cursor=&limit=201"
{
"type": "...
1
vote
4
answers
265
views
What is the best (or most common) way to write smart contracts for Stellar?
I understand from https://stellar.stackexchange.com/questions/92/is-something-like-smart-contracts-possible-in-stellar that there is no built-in way to do so, however maybe there is some kind of an ...
1
vote
1
answer
53
views
Anyone else seeing an error with stellar-dotnet-sdk (AccountResponse - accountId cannot be null)?
I've been using stellar-dotnet-sdk for months; today, I get an error while trying to instantiate an AccountResponse object. AccountResponse.cs, line 147 (AccountId = accountId ?? throw new ...
1
vote
1
answer
363
views
Horizon not Synchronizing ("import session failed: failed to load header: sql: no rows in result set" pid=8077)
<< Background >>
Private network of 4 nodes on 4 VMs, hosted on same server.
Core and Horizon built on 1 VM, and then 3 copies were made from this VM. NODE_SEED (core) & corresponding IP (...
1
vote
1
answer
349
views
Horizon reingest not working
I do run horizon db reingest range 6500 7104 in order to pull some missing entries to my validator.
I run into this error:
INFO[2020-05-04T15:52:55.425Z] Ingestion system initial state ...
1
vote
1
answer
49
views
Duplicate operation in transaction?
I'm having trouble understanding the operations of this transaction: https://horizon.stellar.org/transactions/f06c6a478b0caac5c8b33512100f70c1aa192bee3af7084f2b693df7f75689bd/operations
It seems the ...
1
vote
1
answer
30
views
Given a public key, is there a way to find the assets issued by the account?
I'd like to know if there is a way to query all the assets of which the account is the issuer.
1
vote
1
answer
55
views
Viewing trustlines for authorization required assets from an asset issuer perspective
From an asset holder perspective seeing which trustlines are approved or unapproved for authorization required assets is straightforward - we can see this with the is_authorized boolean on the account ...
1
vote
1
answer
47
views
How is operation ID calculated?
I am trying to understand how the integer operation ID returned by horizon REST API is calculated.
I found this answer which mentions the inputs of the calculation but does not show how to perform ...
1
vote
2
answers
447
views
How to configure package stellar-horizon-postgres?
Using stellar-quickstart, I am able to install, then start and sync stellar-core. However, my attempts to install stellar-horizon fail with the following message:
Package stellar-horizon-postgres ...
1
vote
1
answer
40
views
client_name=undefined client_version=undefined in horizon logs
I have set up a local Horizon instance, version horizon-v0.16.0. I can start horizon, but when I hit the url http://ip:8000 I am getting the following messages in the logs:
time="2019-02-25T12:25:...
1
vote
1
answer
131
views
I'm really confused on the rate limit... Horizon.env has just an hourly rate limit (72000 in docker image). But http headers claim it is 100/sec?
This answer tells me to look at HTTP headers to determine the rate limit. It is 2 values:
X-Ratelimit-Limit: 101 which is # per window
X-Ratelimit-Reset: 1 which is the winlow size (1 second).
But ...
1
vote
1
answer
502
views
How do I disable rate limiting on my local Horizon server?
The docker quickstart doesn't tell me how to disable rate limiting.
Also, the Go SDK which we are using seems to have a rate limit function as well... I'm guessing that is just enforcing the rate ...
1
vote
2
answers
29
views
Trades end point not working
Following url has stopped working
https://horizon-testnet.stellar.org/order_book/trades?selling_asset_type=native&buying_asset_type=credit_alphanum4&buying_asset_code=FOO&...
1
vote
2
answers
690
views
How can I determine if a transaction is confirmed, pending or successful after submitting to the Stellar network?
If someone sends me lumens, what happens if the transaction neither succeed nor fails? How can I determine whether I will receive lumens or not when the transaction is pending?
From the getting ...
1
vote
1
answer
631
views
How to be a Stellar Anchor?
There is currently not much info about this.
I want to provide the ability to exchange for XLM using the local fiat currency I am at.
1
vote
2
answers
215
views
How many Lumens would I have to get in order to create a custom token?
I am currently working on creating a custom token on the Stellar network. Like here: https://medium.com/python-pandemonium/how-to-create-a-custom-token-on-stellar-network-in-python-abf8b2f7a6f8
I ...
1
vote
1
answer
49
views
What is the default limit on the number of transactions returned for a `Server.transactions` request?
Using the Stellar Javascript SDK, what is the maximum number of transactions that will be returned for a request to server.transactions().forAccount(accountId).call() before I have to worry about ...
1
vote
1
answer
403
views
horizon db clear
I run the following commands:
horizon db clear
horizon db backfill
Error:
2018/03/24 14:29:55 network-passphrase is blank: reingestion requires manually setting passphrase
How to reingest the ...
1
vote
2
answers
244
views
How are Stellar transactions distributed to validators?
When I submit a transaction and post it to a Horizon endpoint what process determines which validator will handle the transaction? Do client apps have any visibility or control over this?
1
vote
1
answer
67
views
Are lumens required for a custom network?
New to Stellar so forgive me if this is not the smartest question, but are real lumens still required on a custom network? I would like to use the stellar blockchain for "transaction" ...
1
vote
1
answer
76
views
Horizon v2.0.0 config with Captive Core for pubnet is any example?
I need setup a node for pubnet(mainnet) network watching node
https://github.com/stellar/go/blob/master/services/horizon/internal/docs/captive_core.md#configure-captive-core
is only testnet config and ...
1
vote
1
answer
69
views
How long is a keypair valid until an account is funded and created?
The documentation says:
Stellar requires accounts to hold a minimum balance of 1 XLM before they actually exist. Until it gets a bit of funding, your keypair doesn’t warrant space on the ledger.
How ...
1
vote
1
answer
72
views
How to configure native currency in a private network
I would like to know how we can configure the native currency in a private network?
I would like:
Change the name of the native currency
Change the number of native currency created in the first ...
1
vote
1
answer
68
views
How to pull memo from a public key's historical transactions and save to an array?
Using Stellar's Javascript SDK
Goal
Output an array containing all the memos:
['324567567', 'anotherMemo', '239210923', '2349028509']
This array will be used to check against a database and ...
1
vote
1
answer
151
views
How to find a duplicated transaction or operation when receiving op_already_exists
Sometimes our back end is able to create a transaction in the stellar network, but for some instability or bug or unknown problem, discards the transaction hash.
When retrying the transaction after ...
1
vote
1
answer
102
views
strictReceivePaths not the same as strictSendPaths when reversed
I would assume that the strictReceivePaths would be the same as strictSendPaths when reversed. For example, query these:
strictReceivePaths:
https://horizon.stellar.org/paths/strict-receive?...
1
vote
1
answer
260
views
`pathPaymentStrictSend` transaction produces error `op_under_dest_min` howmuchever the `destMin`
Recreate this transaction on the Stellar laboratory (view XDR to see parameters):
AAAAAJ2XxPOBZhImQhYvufkgoiaUvlcAA3oYpZpxw4uO/...
1
vote
1
answer
171
views
How to provide password when running horizon db migrate up command inside docker container?
I have issues with horizon, when inside the docker container I run horizon db clear and I get the output
There are 18 migrations to apply in the "up" direction.
...
2019/06/20 10:44:26 A database ...
1
vote
1
answer
100
views
the history-stale-threshold flag - what exactly happens when history is stale?
A recent(ish?) addition to the horizon configuration is the
viper.BindEnv("history-stale-threshold", "HISTORY_STALE_THRESHOLD")
the doc says:
"the maximum number of ledgers the history db is ...
1
vote
1
answer
63
views
How to interpret the output of the assets endpoint
I'm looking to list all unique assets on the network, per this endpoint/sdk.
I understand there are interesting public aggregations of this information, such as:
https://stellarasset.com/
https://...
1
vote
1
answer
117
views
Friendbot url - Horizon
I am setting up horizon in local for a private network. How to I configure friendbot url?
Can anyone please explain working of this?