Skip to main content

Questions tagged [horizon]

For questions regarding the Horizon API.

Filter by
Sorted by
Tagged with
2 votes
0 answers
48 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 ...
inative's user avatar
  • 21
2 votes
0 answers
19 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 ...
Secondclaw's user avatar
2 votes
1 answer
93 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 ...
challet's user avatar
  • 173
2 votes
1 answer
158 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 ...
Stellarade's user avatar
2 votes
0 answers
85 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 ...
ton's user avatar
  • 21
2 votes
1 answer
269 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("...
pizi's user avatar
  • 21
2 votes
0 answers
80 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 ...
taraf's user avatar
  • 131
2 votes
1 answer
103 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 ...
Shan Gorai's user avatar
2 votes
0 answers
75 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 ...
John Murphy's user avatar
2 votes
0 answers
98 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....
Andrii Kurilik's user avatar
2 votes
0 answers
252 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 { "...
relik's user avatar
  • 315
2 votes
0 answers
125 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 ...
p3scobar's user avatar
  • 117
2 votes
2 answers
98 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": "...
Anthrose's user avatar
  • 131
2 votes
1 answer
89 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 ...
Ahmad Hidayat's user avatar
2 votes
1 answer
237 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 ...
yulemata's user avatar
  • 312
2 votes
1 answer
64 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": "...
Synesso's user avatar
  • 3,367
1 vote
1 answer
493 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:...
Minherc's user avatar
  • 41
1 vote
2 answers
96 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 ...
maxint's user avatar
  • 303
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": "...
alexqrid's user avatar
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 ...
user1232690's user avatar
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 ...
tylerc's user avatar
  • 119
1 vote
1 answer
364 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 (...
cesarm's user avatar
  • 1,527
1 vote
1 answer
362 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 ...
shredding's user avatar
  • 316
1 vote
1 answer
51 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 ...
terorie's user avatar
  • 131
1 vote
1 answer
32 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.
J R's user avatar
  • 157
1 vote
1 answer
59 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 ...
Owen's user avatar
  • 207
1 vote
1 answer
50 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 ...
Alon's user avatar
  • 225
1 vote
2 answers
455 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 ...
Дід Alik's user avatar
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:...
sweta's user avatar
  • 239
1 vote
1 answer
143 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 ...
Steve Kirsch's user avatar
1 vote
1 answer
544 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 ...
Steve Kirsch's user avatar
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&...
sweta's user avatar
  • 239
1 vote
2 answers
706 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 ...
Prashant Gangwar's user avatar
1 vote
1 answer
632 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.
0xgoku's user avatar
  • 111
1 vote
2 answers
222 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 ...
Shashwat Aditya's user avatar
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 ...
Rahul Gupta-Iwasaki's user avatar
1 vote
1 answer
406 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 ...
Amin's user avatar
  • 11
1 vote
2 answers
246 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?
Ross Bates's user avatar
1 vote
1 answer
70 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" ...
JustAnotherDev's user avatar
1 vote
1 answer
83 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 ...
jingniao's user avatar
1 vote
1 answer
76 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 ...
villanuevaquelin's user avatar
1 vote
1 answer
82 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 ...
Thony's user avatar
  • 13
1 vote
1 answer
69 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 ...
newdev's user avatar
  • 13
1 vote
1 answer
173 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 ...
Vitor Rangel's user avatar
1 vote
1 answer
104 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?...
J R's user avatar
  • 157
1 vote
1 answer
275 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/...
J R's user avatar
  • 157
1 vote
1 answer
177 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 ...
John Murphy's user avatar
1 vote
1 answer
108 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 ...
FuzzyAmi's user avatar
  • 1,581
1 vote
1 answer
65 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://...
Mittenchops's user avatar
1 vote
1 answer
123 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?
sweta's user avatar
  • 239