Skip to main content

Questions tagged [horizon]

For questions regarding the Horizon API.

60 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
39 views

What are the Horizon 2.0 PostgreSQL settings required to vacuum the DB regularly

Need guidelines on how to best manage the size of the horizon captive-core postrgesql DB. We're currently at 1TB of disk for horizon DB only ingesting ledgers from June 2020.
user83948's user avatar
  • 191
5 votes
2 answers
160 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. ...
shredding's user avatar
  • 316
4 votes
1 answer
280 views

Backfilling nodes that have ledger gaps

One more for you: What are the steps to make horizon db backfill to a specific elder ledger number? A core node may not be fully synced and may have ledger gaps.
Sebastian M's user avatar
3 votes
0 answers
117 views

Horizon 2.0 Captive Core Reingestion Issues

Ive successfully installed and started horizon 2.0 but I am having problems reingesting ledgers. Id like to reingest ledgers from [30000000, present]. Ive attempted to do so following the instruction ...
jiujiteiro's user avatar
3 votes
0 answers
87 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/......
marcinx's user avatar
  • 586
3 votes
2 answers
810 views

Horizon waiting for Stellar-core to sync

I have built stellar-core and horizon instances from source on Ubuntu 18.04 LTS. I managed to make them work for the test-net, yet now, whilst trying to configure stellar-core.cfg for the public ...
M.Bradascio's user avatar
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
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
1 vote
0 answers
24 views

Stellar horizon shows "Still Ingesting" after 5 days

I am running stellar-horizon on ec2 server I cloned stellar-core from git clone https://github.com/stellar/stellar-core.git and installed it. I installed horizon from the package manager with the ...
sqrl's user avatar
  • 11
1 vote
0 answers
16 views

How to Retrieve Historical Orderbooks for Specific Stellar Market Using API?

I need historical orderbook data for a particular market on Stellar. While the API offers real-time orderbooks, I'm seeking a way to get past snapshots with ledger_close_time and complete orderbook ...
Edna Laxer's user avatar
1 vote
0 answers
11 views

HISTORY_STALE_THRESHOLD option doesn't work

After referring to this documentation, I set HISTORY_STALE_THRESHOLD to 0 to prevent 503 Historical DB is too stale error when I submit a transaction. This stellar-core code says 0 is the default ...
himori123's user avatar
1 vote
0 answers
25 views

Creating Trust line in Go

I am struggling to set a Trustline. Create account Send Funds to New account Set Trust for a Token Send the Token. I am having a big problem trying to get step 3 working, many online examples are ...
Cyberience's user avatar
1 vote
1 answer
30 views

How do I find out the date and time a specific offer was created?

The "Offer" object only contains a "last_modified_time" field, not when it actually was created, and no information about the transaction ID or ledger number.
kipadip0001's user avatar
1 vote
1 answer
71 views

What API to use to get metadata of asset issuers?

I am trying to get the metadata (such as organization name, logo) of asset issuers in the Stellar network. What API should I use that could possibly contain this information when I pass the Public Key,...
Benji's user avatar
  • 11
1 vote
0 answers
20 views

new-hist - Got an exception: Could not open log file ... check access rights

When I try to create a new-hist I get the following error. Does anyone has an idea how I can fix this? TY sudo -u stellar stellar-core --conf /etc/stellar/stellar-core.cfg new-hist local3 2021-11-...
Nick's user avatar
  • 11
1 vote
1 answer
121 views

How to reserve a transaction sequence number?

I have a multisig account and need to initiate a transaction for set option operation. So prepared a transaction which will be expired in 7 days and within this time all (3 out 3 signers) has to sign ...
Sohan's user avatar
  • 188
1 vote
1 answer
251 views

I wanna my private blockchain network with stellar

I wanna my private blockchain network with stellar but it's not working here is my configure # What port stellar-core listens for commands on. This is for Horizon server. HTTP_PORT=11626 ...
zena's user avatar
  • 11
1 vote
0 answers
103 views

Catching Up Stellar Core Not Completed in a Long Time

I'm trying to run the stellar core and the horizon on my server using stellar/quickstart docker image. It's been a week since I started and it didn't synced. On the configuration file stellar-core.cfg,...
Fadhlan Ridhwanallah's user avatar
1 vote
0 answers
74 views

Horizon - Ingest historical trade history for pair

Is there a way to ingest data for trade_aggregations for asset pairs instead of needing to ingest all the ledgers into Horizon? I only really care about trade_aggregations on specific pairs and don't ...
user83948's user avatar
  • 191
1 vote
0 answers
86 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 ...
gekpp's user avatar
  • 11
1 vote
0 answers
108 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 # ...
Mr. A's user avatar
  • 11
1 vote
0 answers
41 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 ...
tminh's user avatar
  • 21
1 vote
0 answers
27 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 ...
Muhammad Waqas's user avatar
1 vote
0 answers
74 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 ...
DimaA6_ABC's user avatar
1 vote
0 answers
39 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 ...
Akshat Nautiyal's user avatar
1 vote
0 answers
60 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 ...
marcinx's user avatar
  • 586
1 vote
0 answers
75 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-...
Suman Raj's user avatar
1 vote
0 answers
58 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 {}'...
Volatil3's user avatar
  • 215
1 vote
0 answers
31 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 ...
Vijin's user avatar
  • 143
1 vote
0 answers
38 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 ...
user3188290's user avatar
1 vote
0 answers
89 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) ...
sweta's user avatar
  • 239
0 votes
0 answers
7 views

https://horizon.stellar.org/trades?

When querying all trades for a base asset / counter asset, I would expect the next link to be null on the last page but instead it keeps giving another link in which the results are not related to the ...
user8407's user avatar
0 votes
0 answers
7 views

Wrong Port in Horizon Link on Kubernetes

I'm running Stellar QuickStart on a Kubernetes Cluster, but the links contain the Pod port when it shouldn't. Here's the Kubernetes setup Pod => Container Port = 8000 ClusterIP Service => Port =...
Jerome Cyrus's user avatar
0 votes
1 answer
30 views

How can I get the last transactions of an account from Horizon?

I need to retrieve the last 10 transactions (payments) of an account and I'm using the Horizon API, but the limit is 200 and I can't go beyond that. I explain you. i'm using horizon.stellar.org/...
madmad23's user avatar
0 votes
1 answer
34 views

weird response from funding an accnount on testnet

Following the tutorial and using stellar-base, I created an account and successfully generated a keypair, as follows: New key pair created! Account ID: **** Secret: **** I then tried to fund the ...
passion-nature's user avatar
0 votes
1 answer
91 views

Stellar Captive Core For Private Network

I have set up one stellar private network. Now I want to connect horizon with that private network core in captive mode. So that I have create one stellar-captive-core.cfg file as below [[HOME_DOMAINS]...
Alex Smith's user avatar
0 votes
1 answer
36 views

Stellar operations priority

What order is used to execute operations in ledger? I mean those operations who passed fee filter Sorted by time of submission fee random order? I tried to find this information in docs, but no luck
Alex0007's user avatar
  • 101
0 votes
0 answers
23 views

Horizon Ingestion

We hosted horizon in our own network, the size of storage is increasing dramatically. Is there anyway that we can start ingesting only from a specific date?
Atiqullah Ahmadzai's user avatar
0 votes
2 answers
303 views

Change Network Passphrase - Quickstart - Persistent - Docker

I am trying to change the network passphrase for stellar. I am using the quickstart docker image and launching in standalone mode. command: docker run --rm -it -p "8000:8000" -v "E:\...
user4098's user avatar
0 votes
1 answer
190 views

How to set up a anchor on stellar?

As I working on stellar Blockchain, can anyone guide me on how to create an anchor on stellar? and How it will give a withdraw amount in fiat currency & which protocol is it used to convert ...
Isha Padalia's user avatar