Questions tagged [horizon]

For questions regarding the Horizon API.

70 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
34 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.
user avatar
  • 191
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
4 votes
1 answer
275 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.
user avatar
3 votes
0 answers
101 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 ...
user avatar
3 votes
2 answers
748 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 ...
user avatar
2 votes
0 answers
35 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 ...
user avatar
  • 21
2 votes
0 answers
14 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 ...
user avatar
2 votes
1 answer
65 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 ...
user avatar
  • 173
2 votes
1 answer
99 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 ...
user avatar
2 votes
0 answers
56 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 ...
user avatar
  • 21
2 votes
0 answers
62 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 ...
user avatar
  • 131
2 votes
1 answer
71 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 ...
user avatar
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
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
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
2 votes
0 answers
224 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 { "...
user avatar
  • 315
2 votes
0 answers
119 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 ...
user avatar
  • 117
1 vote
1 answer
30 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,...
user avatar
  • 11
1 vote
0 answers
8 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-...
user avatar
  • 11
1 vote
1 answer
61 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 ...
user avatar
  • 188
1 vote
0 answers
61 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,...
user avatar
1 vote
0 answers
68 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 ...
user avatar
  • 191
1 vote
0 answers
77 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 ...
user avatar
  • 11
1 vote
0 answers
82 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 # ...
user avatar
  • 11
1 vote
1 answer
169 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("...
user avatar
  • 11
1 vote
0 answers
35 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 ...
user avatar
  • 21
1 vote
0 answers
24 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 ...
user avatar
1 vote
0 answers
71 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 ...
user avatar
1 vote
0 answers
34 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 ...
user avatar
1 vote
0 answers
50 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 ...
user avatar
  • 576
1 vote
0 answers
68 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-...
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
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
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
1 vote
2 answers
89 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": "...
user avatar
  • 121
0 votes
0 answers
2 views

Conver USD => GBP in stellar

I am working on Fintech startup company. I need to convert traditional fiat-currency exchange system to stellar-blockchain based system. I can take a use case transfer from GBP to USD What do I need ...
user avatar
0 votes
0 answers
5 views

Django Polaris not processing pending deposits

I have implemented the integrations: register_integrations( deposit=MyDepositIntegration(), withdrawal=MyWithdrawalIntegration(), fee=fee_integration, ...
user avatar
0 votes
0 answers
11 views

number of accounts

Is there an easier way to discover the number of accounts than inspecting every ledger for create_account operations? (I'm looking on a xlm clone so there's only 6mill ledgers) I wrote a python script ...
user avatar
  • 1
0 votes
0 answers
5 views

Getting Horizon error when running

I am getting horizon error: "Resource Missing" - check horizon.Error.Problem for more information when running from the command line and also from the GUI. I wanted to run on the main net, ...
user avatar
  • 1
0 votes
0 answers
9 views

Two captive core both in synced state but report different ledger number

Have anyone experienced this. I deploy two instances of Horizon service each with its own captive-core. After a while, both captive-core caught up and when I query its :11626/info endpoint both report ...
user avatar
  • 101
0 votes
0 answers
8 views

stellar core upgradation issue

I have upgraded my stellar private network core version 15 to 18 and it is synced. Now I am trying to upgrade my horizon 1.11.0 to 2.12.0 and I have configured captive-core.toml file for my private ...
user avatar
0 votes
0 answers
11 views

Liquidity Earnings

I have put assets into liquidate pools on the Stellar network. Do I earn fees from the pool in $AQUA only or is it in the tokens I added to the pool?
user avatar
0 votes
1 answer
39 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]...
user avatar
0 votes
0 answers
16 views

How to find my initial create_account transaction?

I'm new to using Stellar, having just created an account on Keybase.io (which presumably acts as my wallet). I have some past experience using the Steem blockchain though, so I understand the basics. ...
user avatar
0 votes
0 answers
6 views

waiting for ingestion system catchup" pid=27603 service=ingest status="{false false 0 0 0}

I am trying to setup horizon server on testnet. captive core is running on a different machine and api server is running on a different machine. When start up horizon api server, getting this info ...
user avatar
0 votes
0 answers
60 views

How to get an account's current amount of pooled assets in a liquidity pool (LP) via Horizon API?

I'm wondering how to retrieve the current amount of assets (asset 1 & 2, not shares) that an account has ownership of within a liquidity pool (LP)? More specifically, I'm searching for the Horizon ...
user avatar
0 votes
1 answer
21 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
user avatar
  • 101
0 votes
0 answers
15 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?
user avatar
0 votes
1 answer
13 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.
user avatar