Questions tagged [horizon]

For questions regarding the Horizon API.

Filter by
Sorted by
Tagged with
1
vote
0answers
38 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 ...
1
vote
0answers
65 views

What is the correct way of preventing transaction duplication?

We faced the problem when horizonclient returned errors while sending an envelope but transaction has been created. Please bash my thoughts and tell me where I'm wrong and how you do that. The process ...
1
vote
0answers
39 views

stellar-horizon db size

maybe someone could help me. I have a node with the config below: CATCHUP_RECENT=362880 # approximately 3 weeks (5sec per ledger closing) - stellar HISTORY_RETENTION_COUNT=362880 # ...
1
vote
1answer
92 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("...
1
vote
0answers
30 views

I can not streaming trade from Horizon Server

I have setup one instance running Store core and Horizon (with ingest=true). This is Core node. One instance running Horizon server (with ingest=false). This is Horizon node. I can run streaming ...
1
vote
0answers
16 views

How to creating anchors for crypto currencies and mapping the native deposit addresses

Actually I want to create a crypto currency wallet using stellar anchors. I do not want to run a dedicated node for any crypto coin and also not want to depend on any 3rd party service that's why I ...
1
vote
0answers
58 views

Parallel ingestion with Horizon 1.0.0 is not working - second Horizon waits for the first to complete

Document https://github.com/stellar/go/blob/master/services/horizon/internal/docs/admin.md says: To reingest older ledgers (due to a version upgrade) or to ingest ledgers closed by the network before ...
1
vote
0answers
24 views

upgraded horizon version, newly added tables is not synchronising with stellar core private network

Stellar core version is 12.2.0. Recently i upgraded my horizon version from 0.17 to 0.23. while running, it showed me an error that i need to "horizon db migrate up". Post doing that it basically ...
1
vote
1answer
48 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 ...
1
vote
0answers
33 views

Why is the /paths endpoint on my custom Horizon deployment abnormally slow?

I was wondering if anyone has an idea what could be causing our Horizon (0.17.6) /paths endpoint to be extremely slow. A simple query takes 1m22s on our custom deployment. On public SDF Horizon the ...
1
vote
0answers
61 views

How to update the transaction fees in private network - normally it is 100 stroops

I have updated the config file by putting the below value COMMANDS=["upgrades?mode=set&upgradetime=1970-01-01T00:00:00Z&basefee=1&basereserve=1"] By using the command stellar-...
1
vote
2answers
110 views

Exception while send Transaction using Java stellar SDK “TimeBounds has to be set or you must call setTimeout(TIMEOUT_INFINITE)”

I am getting the following Exception while performing send transaction using the Java Stellar SDK. This is my send transaction code: import org.stellar.sdk.AssetTypeNative; import org.stellar.sdk....
1
vote
0answers
42 views

Unable to get sequence number

I am trying to create a transaction op and I am not being able to get the sequence number. I tried on Stellar lab but it did not work. What's wrong? Below is my code: # print('Transferring fund to {}'...
1
vote
0answers
22 views

peer's txhistory table is not updating after making payment

I have successfully set up stellar-core in my private network using a different network passphrase with 3 nodes. When I run stellar-core -c 'info' output says state: Synced!. I have configured one ...
1
vote
0answers
21 views

How to properly update stellar-xdr and recreate docker image of stellar-horizon?

I want to increase the memo field from 28 bytes by changing this line in Stellar-transaction.x for my private network: MEMO_TEXT: string text<28>. I am able to pull the stellar-go repo into my ...
1
vote
0answers
58 views

postgres PANI[0000] connect failed: pq: role “root” does not exist pid=13863, postgres v 9.5 - Horizon

Getting below error when trying to connect to postgres (trying to start Horizon) PANI[0000] connect failed: pq: role "root" does not exist pid=13863 panic: (*logrus.Entry) (0xbcb320,0xc4200112c0) ...
1
vote
2answers
149 views

How to get account historical balances?

how would I go about obtaining a list of historical data (tokens held, their quantities and a timestamp) for an address? The stellar expert explorer has a way of generating this kind of data, an ...
1
vote
2answers
65 views

Why do request with the SDK work without starting a local Node?

I followed this guide to create an account and get the balance. I am also running this docker instance. I am confused (and impressed) that I don't have to start a node (e.g. the docker instance) or ...
1
vote
0answers
113 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 ...
1
vote
2answers
83 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": "...
1
vote
1answer
53 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": "...
0
votes
1answer
37 views

Do I Need to fund Stellar with Lumens for custom token based wallets too?

I want to create custom token for my system but it seems that I can not create a wallet unless I fund it with 1 XLM? Is it true? If not why my wallet is not being created? Thanks
0
votes
1answer
59 views

How stellar prevent DDoS

How stellar prevent DDoS attack from rest API (https://horizon.stellar.org/)
0
votes
2answers
19 views

Horizon returns a 404 error upon querying just-submitted transactions

Upon the successful confirmation of a transaction submission, my app immediately queries the link to the transaction in the response. But I often receive a 404 error from Horizon. Sometimes I get a ...
0
votes
1answer
23 views

How does one use a certain version of Horizon when requesting?

I would like to use the 0.23 version of Horizon in this particular query below. How does one do that? var server = new StellarSdk.Server("https://horizon.stellar.org"); var sourceAsset = new ...
0
votes
1answer
30 views

How to list all unique contracts on the network?

From a study comparing smart contracts on Ethereum and Stellar, there's a point in the study about downloading all contracts: Testing Smart Contracts: Ethereum vs. Stellar The researchers from ...
0
votes
1answer
45 views

Get all accounts and sort by balance

How can I get all accounts and sort by the balance? I'd like to build a list of all accounts and then sort them by the balance. I realize the data set would be large, but was thinking maybe via a ...
0
votes
1answer
837 views

Receiving ETIMEOUT 104.20.58.10:443 error when request to `horizon.stellar.org`

ETIMEOUT 104.20.58.10:443 I sometime receive this error when request to horizon.stellar.org. What is this error?
0
votes
1answer
55 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
110 views

horizon ingest the historical data

I'm running a new horizon v1.2 with ingest=true. It is connected to the stellar core with CATCHUP_COMPELTE enabled. (the status of the core is catching up 5%) My question is what is the command to ...
0
votes
1answer
46 views

Path payment is taking only 4 hops BUT stellar is mentioning upto 6 hops

Let assets are A,B,C,D,E,F I have created few orders like A->B B->C C->D D->E E->F Now, i have created an order where user1 is selling "F" to a destination user2 and the ...
0
votes
1answer
102 views

Connection refused error in Horizon

Launching Horizon with stellar/quickstart docker image: horizon db init --db-url postgres://stellar:123456789@127.0.0.1:5432/core --stellar-core-db-url postgres://stellar:123456789@127.0.0.1:5432/...
0
votes
1answer
140 views

Getting up and running with a Stellar-Core and Horizon with a Database

I am new to the Stellar world and wanted to set up a node (Stellar Core, Horizon and a Database) for the first time to run as an anchor. However, I couldn't figure it out from the documentation how to ...
0
votes
1answer
120 views

Run core with catchup complete

I have a new stellar core instance with CATCHUP COMPLETE true and one stellar horizon instance with INGEST true. I'm totally new with stellar. I've started the core node and it's catching up the data....
0
votes
1answer
50 views

Connecting private set of quorum of 3 nodes on stellar test network

I have a 3 nodes running on a private network paraphrase and all of them are validators. Able to send the transactions over horizon. Now, can I connect my quorum of 3 validators with test-network ? ...
0
votes
1answer
53 views

Unable to create wallet due to issuer issue

All of sudden I am getting the following error on TestNet. Issuer Address is GCZDLM6KBK7P42JB6ONIZNYXE24G72PWUXLOZBOLE5EEGOC2FUKKIN4R Creating Wallet for User with id 39 ...
0
votes
1answer
37 views

How to catch specific error code on JS SDK connecting to horizon

I use Javascript SDK to connect to Horizon. It works, but I also would like the specific error if it doesn't work. See my code below. How can I access the specific code returned from horizon (e.g. ...
0
votes
1answer
103 views

Issue while creating account

I have set up a private network with core & horizon, when creating accounts I am getting internal server error. In horizon logs I am getting msg="select failed: pq: relation "signers" does not ...
0
votes
1answer
43 views

Version devel while setting up horizon in local

I am trying to build horizon in local by following https://github.com/stellar/go/blob/master/services/horizon/internal/docs/admin.md The setup is complete. When I do horizon version it say devel. Why?...
0
votes
1answer
50 views

Stellar Blockexplorer API call for looking up exact amount transferred

I am looking for a Stellar Blockexplorer API which lets me look up (given an address and transaction hash) the exact amount in Lumen that was transferred in a transaction as a single string. Example ...
0
votes
1answer
73 views

Getting transactions history for account

I am trying to monitor the transactions for our main account. I am using the laboratory and I see something weird.. I filter it with ascending order to see from start up to now. My question is: From ...
0
votes
1answer
67 views

Why do we receive an undefined Event error when streaming payments via the node.js sdk?

We run a continuous payments stream that receives fairly useless errors on the regular and would like to know what these may stem from and if they can be disregarded. I haven't been able to correlate ...
0
votes
1answer
100 views

Retrieving order book from Stellar Network has been blocked by Cloudflare

I've been running my ticker-bot to gather order book from Stellar Network. However, it did not work since probably few hours ago. The bot is tiny program written in Python which just pinging ...
0
votes
1answer
77 views

Sharing transaction to more than one co- signers to get sign

I am very new to stellar. I have gone through the documents available in stellar offical website. In my scenario, trying to send the transaction to more than co-signers to get signature. wrote code ...
0
votes
1answer
83 views

How to check if a transaction went through?

When we submit a transaction to Horizon, we either get a success response or an error response. In the case of an error response, we can save the transaction in XDR format and resend it. But, if we ...
0
votes
1answer
244 views

horizon not syncing

i have some problem with a test-net horizon that is not syncing. I'm using the quickstart docker image and i see core is fully synced (state: "Synced!"). On horizon i see that history.latest_ledger ...
0
votes
1answer
331 views

Steps for Horizon to Ingest Stellar-Core from ledger 1, after `horizon db clear`?

With a private network running for several months, I accidentally called the command horizon db clear, and then Horizon now shows: "history_latest_ledger": 2576535, "history_elder_ledger": 1830026, ...
0
votes
0answers
19 views

Horizon does not commit postgres transaction when ingesting

I have a history of stellar core and horizon databases which we abandoned a year ago. Now we need to catch up with the blockchain. stellar core synched to some height, and Horizon lagging few million ...
0
votes
0answers
43 views

Error Connecting local Horizon to Stellar Core within Stellar Quickstart Docker Image

I am trying to test out some functionality with the Horizon API server. I have followed the directions listed out here Everything seems to be working fine, but when I get to the "Connect Horizon ...