Questions tagged [horizon]

For questions regarding the Horizon API.

Filter by
Sorted by
Tagged with
1 vote
2 answers
408 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 ...
user avatar
2 votes
1 answer
77 views

Stellar scalability to 4000 tx/s

I tried to scale Stellar Standalone to process 4000 tx per second. I use AWS EC2 m4.large for Core, and Horizon. Also I use Postgres RDS for core and Horrizon, but I have only 560 tx per second. My ...
user avatar
  • 21
2 votes
1 answer
70 views

How to configure Horizon response _links.href values to use https?

I am running Stellar core and Horizon behind an Nginx reverse proxy and encountering issues with the _link.href output by Horizon. The SSL is terminated at nginx, with the connection to Horizon non-...
user avatar
  • 23
0 votes
1 answer
38 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 ...
user avatar
1 vote
1 answer
57 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://...
user avatar
1 vote
0 answers
49 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 {}'...
user avatar
  • 205
1 vote
1 answer
471 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:...
user avatar
  • 31
1 vote
0 answers
28 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 ...
user avatar
  • 143
-4 votes
4 answers
107 views

Example code on Ubuntu+node.js gives error re "await"

Updated: added full code below. I'm trying to run the "Creating a payment transaction" example but the error I get is const account = await server.loadAccount(sourcePublicKey); ^^^^^...
user avatar
  • 1
0 votes
1 answer
81 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 ...
user avatar
  • 205
4 votes
1 answer
55 views

Check with simple API request if account has received prior transactions

I want to check if a simple API request if an account has received prior transactions. I know that one has to do a transaction to "initialize the account" but how do I check if it has received any ...
user avatar
1 vote
1 answer
105 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?
user avatar
  • 229
1 vote
1 answer
50 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 ...
user avatar
  • 119
0 votes
1 answer
50 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. ...
user avatar
  • 51
2 votes
1 answer
115 views

Asset endpoint returns 404 on standalone network

I build a docker image from the v0.17.0 tag of docker-stellar-core-horizon. Then, I created a local standalone network from that image: docker run --rm -d -p "8000:8000" -p "11626:11626" \ -p "...
user avatar
  • 3,357
1 vote
1 answer
39 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:...
user avatar
  • 229
0 votes
1 answer
113 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 ...
user avatar
  • 229
1 vote
1 answer
121 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 ...
user avatar
1 vote
1 answer
396 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 ...
user avatar
1 vote
0 answers
29 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 ...
user avatar
1 vote
0 answers
78 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) ...
user avatar
  • 229
0 votes
1 answer
60 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?...
user avatar
  • 229
0 votes
1 answer
78 views

How stellar prevent DDoS

How stellar prevent DDoS attack from rest API (https://horizon.stellar.org/)
user avatar
  • 103
2 votes
0 answers
53 views

How to set correct hostname in Horizon?

What is the correct way to set a hostname in Horizon? Hosting server is configured to horizon.stellar.domain.com but within Horizon the generated paths for all href attributes show http://horizon/......
user avatar
  • 576
4 votes
2 answers
373 views

Are there any publicly available horizon servers or do you always have to run your own private servers?

Stellarbeat.io has a list of hundreds of horizon servers, but if you try to connect to any of them with a simple GET request (like to get account info), it immediately closes the connection. Are they ...
user avatar
2 votes
1 answer
381 views

horizon.stellar.org | 504: Gateway time-out errors are FREQUENT!

I’ve been using the py-stellar-base library to access the stellar public horizon server (version from late last year) and up till recently it’s been fine. Now I get timeouts (no response from horizon)...
user avatar
1 vote
2 answers
28 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&...
user avatar
  • 229
0 votes
1 answer
84 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 ...
user avatar
  • 1
0 votes
1 answer
84 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 ...
user avatar
0 votes
1 answer
1k 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?
user avatar
  • 43
3 votes
1 answer
48 views

How to tell if sequence number has been incremented from transaction post response

Is there a straightforward way to ascertain from the horizon txn post response if the seqno has been incremented? For example, an underfunded operation will cause the seq number to increment, but a ...
user avatar
  • 3,357
0 votes
1 answer
83 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 ...
user avatar
5 votes
2 answers
150 views

Own stellar horizon is not showing data prior to own instance launch date

I run a stellar node using the docker quickstart image and due to some syncing error the underlying ec2 instance was terminated and restarted on 2018-12-28T10:45:19Z, state of core is Synced. ...
user avatar
  • 316
1 vote
1 answer
53 views

Why do transactions sent by a channel account do not appear in the operations history for the source account?

I'm currently writing an app that facilitates multi-sig transactions, and one of the issues we faced was the fact that to enable multiple transactions to be created and signed, we had to use channel ...
user avatar
0 votes
1 answer
94 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 ...
user avatar
3 votes
1 answer
176 views

Path payment accounting

I've noticed a weird path payment and I'm confused as to how to interpret it. The payment is represented on stellar.expert as GBN2KFK sending 3.333 XLM to a path and GATEMHC receiving 1 XLM at the ...
user avatar
  • 133
0 votes
1 answer
249 views

transaction is not submitting on stellar network!

load account is working fine and giving details of accounts means horizon is giving response but on transaction submitting getting error. local node setup done using docker image of stellar code ...
user avatar
0 votes
1 answer
112 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 ...
user avatar
  • 111
2 votes
0 answers
70 views

Is the Horizon Testnet Currently down?

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 ...
user avatar
0 votes
1 answer
91 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 ...
user avatar
  • 15
0 votes
1 answer
94 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 ...
user avatar
1 vote
2 answers
651 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 ...
user avatar
1 vote
2 answers
222 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 ...
user avatar
0 votes
1 answer
295 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 ...
user avatar
0 votes
1 answer
414 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, ...
user avatar
  • 1,517
1 vote
2 answers
73 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 ...
user avatar
  • 113
0 votes
1 answer
152 views

Minimum account balance Changed?

The base_reserve_in_stroops says 5,000,000 (0.05 XLM) in the following URL. This is a recent ledger entry. Does this mean it only takes 0.1 XLM (2 * 0.5 XLM) to create an account now? https://horizon....
user avatar
  • 41
5 votes
1 answer
367 views

How to expose a Horizon URL

I created a private network using only stellar-core, but I'm finding it increasing difficult to work with the network without SDK support. This can be all solved if I can use stellar-lab with my ...
user avatar
  • 649
1 vote
1 answer
620 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.
user avatar
  • 111
2 votes
0 answers
94 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....
user avatar