Questions tagged [horizon]
For questions regarding the Horizon API.
241
questions
14
votes
4
answers
457
views
Can Stellar-core be packaged in a container system such as Docker?
I want to incorporate Stellar-core and horizon into my private infrastructure using Docker. Can Stellar-core be packaged in a container system such as Docker?
11
votes
1
answer
309
views
Why is Stellar on HTTP and not HTTPS?
On the Stellar website: "API: Horizon Most applications interact with the Stellar network through Horizon, a RESTful HTTP API server. Horizon gives you a straightforward way to submit transactions, ...
9
votes
1
answer
603
views
Securing Stellar node
I would like to know how I can secure the Stellar node from unauthorized access. I run a Stellar node (still learning) as a Full validator with the following services on the default port.
Stellar ...
8
votes
2
answers
1k
views
How can I create a real account using the stellar Horizon API?
I have been practicing with the test-net for a while and creating test accounts with the friendbot.
Now I want to create a real account throught the API with the lumens that I already have.
Is there ...
8
votes
1
answer
420
views
Best way to test maximum possible TPS on private network?
I have setup a private network and want to do max possible TPS(Transactions per second). Hardware is not an issue, working with GCP and can use 160 core CPU and 4000GB RAM for my machine.
A few ...
7
votes
1
answer
314
views
Testing Stellar for high volume of operations per second
I'm testing Stellar for a project where we want to be able to get ~4000 operations per second. Multiple sources ( including this question's answer: Scalability on Stellar network ) indicate that I ...
7
votes
2
answers
791
views
What can cause horizon to have incomplete data?
On a private network, I have 5 core nodes and 5 horizon instances, all of the horizon services were not configured with "history-retention-count", so according to this, this variable to should default ...
7
votes
2
answers
462
views
Lost ledger data: what is the proper way to shutdown and restart a node?
I had to restart Docker Engine, and I stopped the services by attaching to the container and issuing ctrl+c. It was in the process of downloading ledger files, and I thought that it would pick up from ...
7
votes
1
answer
166
views
Is there a speed difference between the SDKs?
The JavaScript Stellar SDK facilitates integration with the Stellar Horizon API server and submission of Stellar transactions, either on Node.js or in the browser. It has two main uses: querying ...
6
votes
1
answer
295
views
aws architecture recommendations for stellar
Most of the documentation seems to be about running a single server.
However, I'm wondering if it makes more sense to have a shared DB (e.g. RDS) and multiple application servers that use that. I'd ...
6
votes
1
answer
219
views
Is it possible to submit transactions to Stellar Core directly without Horizon?
Is it possible to submit transactions to Stellar Core directly without Horizon? Or do you need to use Horizon for all interactions with the Stellar network?
6
votes
3
answers
977
views
How to get status of historical ledgers synced after setting CATCHUP_COMPLETE=true
I had problems getting the node to resync all past ledgers and had to start from scratch. I can see that stellar-core is writing ledgers to disk, but I'm not sure how to check the status of it, or ...
6
votes
1
answer
122
views
Stellar Bridge not POSTing callbacks with mac_key configured
Background: using Bridge Server v0.0.30.0
I'm making payments to a test account and looking to receive callbacks. I've been successful so far, but I'm going through securing the callback endpoint. ...
6
votes
2
answers
528
views
Horizon gives 504 after firing many transactions
I have three stellar-core instances and one Horizon server. The Horizon server is connected to the first of three nodes.
All goes well for a while, until I start firing many, many transactions at ...
5
votes
2
answers
954
views
Unable to connect to horizon via JavaScript SDK
I am just getting started with Stellar. I run a node connected with test network with the following command.
docker run --rm -it -p "8000:8000" -v "/home/prashant/stellar/steler-node:/opt/stellar" --...
5
votes
2
answers
115
views
Why are overspending transactions added to the ledger?
I always assumed that this could not make its way into the ledger, but while testing with (seemingly) invalid transactions, I created the following:
A custom asset
I created a custom asset. As you ...
5
votes
1
answer
59
views
What state is a transaction in after being succesfully posted?
Related to how to trace the state of a transaction after submit?
After a transaction has been sent to the Post Transaction endpoint and it returns a successful response:
A successful response (i.e....
5
votes
1
answer
97
views
Amount in XDR is negative. Why?
I'm trying to submit a transaction that includes a payment operation. Sometimes the transaction succeeds. However, sometimes it fails. I believe this has something to do with the decimal being ...
5
votes
1
answer
499
views
captive core does not work
I want to use the captive core of stellar-horizon v2.0.0, but the following command does not work.
Instance is building a new.
As far as I read the docs, I don't think it will make http requests to ...
5
votes
1
answer
250
views
Why horizon cursors are so obfuscated?
I wonder if there is any system in values for stellar horizon cursors.
I tried to ask testnet horizon for ledgers, starting from https://horizon-testnet.stellar.org/ledgers/
and then pressing next ...
5
votes
1
answer
71
views
Is Horizon semi-centralized?
While anyone can host a Horizon server, is this considered a semi-centralized entry point because the primary REST endpoint for most clients will be through Stellar's own horizon.stellar.com?
Are ...
5
votes
3
answers
323
views
Bonds on Stellar
A couple of years ago Jed wrote about the possibility of using Stellar to issue Bonds (http://jedmccaleb.com/blog/bonds-on-stellar/). The example is clear, however I would like to know what is the ...
5
votes
1
answer
1k
views
Stellar Horizon not synchronizing
Background:
Using satoshipay/stellar-horizon:0.11.1 for Horizon
Stellar Core seems to be running. Based on logs, we get the latest sequence number and ledger:
2018-04-18T10:31:32.695 GDYMW [Ledger ...
5
votes
1
answer
424
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 ...
5
votes
1
answer
164
views
Could not complete "horizon db init" exec failed: pq: unrecognized configuration parameter "lock_timeout"
I get the following error on running the command - horizon db init. My Horizon install is compiled from the source for CentOS 7 following https://www.stellar.org/developers/horizon/reference/admin....
5
votes
2
answers
906
views
Horizon server returning 404 for GET /accounts/{id}/payments
I am setting up a private stellar network in my local MAC environment. It does not connect to testnet or public stellar networks.
Horizon server returns status code 404 for GET /accounts/{id}/...
5
votes
0
answers
42
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.
5
votes
2
answers
163
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.
...
4
votes
2
answers
498
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 ...
4
votes
4
answers
1k
views
What to do about the rate limit exceeded problem?
I keep getting the rate_limit_exceeded error when I try to process a transaction on the testnet.
I looked at the guide on how to fix it but as someone relatively new to programming, I'm still unsure ...
4
votes
2
answers
374
views
How can I configure horizon to download and retain the entire history and never delete it?
When using the stellar/quickstart docker image, how can I configure horizon (stellar-core?) to download and retain the entire history and never delete it? By default it seems to only download the last ...
4
votes
1
answer
67
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 ...
4
votes
1
answer
196
views
How do you use the stellar quickstart without docker?
It says "The easiest way to install Horizon is by using stellar/quickstart docker image."
But I can't run the "docker pull" command without docker.
I went to download docker from their site and ...
4
votes
1
answer
133
views
ChangeTrustNotAllowed Error
I'm trying to run a Change Trust operation in order to add a trustline, but it throws me a ChangeTrustNotAllowed error which I can't reference in the documentation.
Here's my Transaction Envelope and ...
4
votes
1
answer
130
views
How to use the Stellar SDK API Reference?
I am trying to understand how the API reference is meant to be used.
For example I want to see how to set up a trust line for an account using the changeTrust() operation.
I went to the API ...
4
votes
2
answers
182
views
Horizon returns 404 when trying to query accounts/{ID}/payments
I've spun up a Stellar horizon server using the Docker image mentioned in the repo below
https://github.com/stellar/docker-stellar-core-horizon
It spins up just fine but I don't get any payment ...
4
votes
1
answer
124
views
Transaction, Operations, and Payments
I am currently trying to get the memo and amount of a transaction, but am confused over the differences between a transaction, an operation, and a payment.
From my understanding, a transaction ...
4
votes
1
answer
230
views
Do I need to run Stellar-core and horizon to conduct crowdsale?
Do I need to run Stellar-core and horizon-server to conduct crowdsale ?
if yes, Why stellar public horizon is not enough for this case (crowdfunding) ?
4
votes
3
answers
276
views
Is pathfinding implemented somewhere yet? Is it complicated to do? Why isn’t it universal?
I’m dying to use pathfinding for exchanging assets and it would greatly expand the way people trade over the network.
Why isn’t it implemented by UI exchanges?
Is it complicated to do?
Is work from ...
4
votes
1
answer
149
views
Monitor transactions of non-native asset
is there a convenient way to monitor all transactions/payments/operations of a custom asset? It seems like the REST API only allows this for either one account or the whole network, but not for a ...
4
votes
1
answer
112
views
How to find cursor of a specific timestamp?
I need to find what's the cursor of a specific timestamp in order to let my users see their transactions by date.
Is there any function in an SDK or any endpoint on horizon server?
4
votes
1
answer
245
views
stellar docker and nginx reverse proxy
I am running a stellar docker using this command:
sudo docker run -d --rm -it -p "7777:8000" --name stellar stellar/quickstart --testnet
which will bind the horizon (port 8000) to my host port ...
4
votes
1
answer
33
views
Internal error on trades API
Why do I get an internal error when requesting this url?
https://horizon.stellar.org/trades?base_asset_type=native&counter_asset_code=MOBI&counter_asset_issuer=...
4
votes
2
answers
343
views
Streaming API not working?
I'm trying to enable streaming via the REST API but it doesn't seem to be working.
curl -H "Accept: text/event-stream" "https://horizon-testnet.stellar.org/payments"
This curl statement only returns ...
4
votes
3
answers
657
views
How should the changeTrust Operation be used?
If I want to create a trustline between my issuing account and new users accounts, how do I do this. I tried with this code:
const StellarSdk = require('stellar-sdk');
StellarSdk.Network....
4
votes
1
answer
283
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.
3
votes
1
answer
43
views
Distinction between signers.key and signers.public_key in Account response
In the signers block of an Account response:
"signers": [
{
"public_key": "GBH25RYXAEDKPZUIMC5VJBKNYRUULY5B2LH5NVG6Q3RZPHK5KPFBZX7T",
"weight": 1,
"key": "...
3
votes
1
answer
132
views
Is a payment returned through horizon api call: "Payments for Account" always "confirmed"?
Is a payment returned through horizon api call: "Payments for Account" always "confirmed"?
In comparison to Ripple a transaction could be returned but not validated yet. Is Horizon filtering this out ...
3
votes
1
answer
329
views
Who hosts and maintains Stellar Horizon server?
I'm thinking of developing apps on one of the Dapp platforms. When I skimmed through the Stellar doc, it seems the entry point to the network is the Stellar Horizon RESTful server.
According to the ...
3
votes
1
answer
49
views
Can't find Horizon X-RateLimit-* headers
I found a lot of discussion on how rate limits work, ex:
Did Stellar's public Horizon Server Changes its rate limit?
But I can't find X-RateLimit-* headers in any of the responses, ex:
curl -i ...