Questions tagged [horizon]
For questions regarding the Horizon API.
246
questions
3
votes
1
answer
303
views
How do I construct The Horizon postgresql string to connect to a unix socket
I've successfully gotten stellar-core itself to connect to my postgresql database using a Unix socket, like this:
DATABASE="postgresql://dbname=stellarb user=stellarb host=/var/run/postgresql"
Now, I ...
4
votes
1
answer
228
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) ?
3
votes
1
answer
77
views
What is HorizonRequestError error 11?
Horizon returns errors with numbers, but as far as I can see, there aren't numbers in the error reference.
The operation couldn’t be completed. (stellarsdk.HorizonRequestError error 11.)
What is ...
2
votes
1
answer
60
views
Horizon import failed (Integer type error?)
I configured a custom docker-compose with Postgres, Stellar Core and Horizon as seperate services. Core and Horizon are running and are responsive via HTTP. Stellar-Core is running on Livenet and is ...
7
votes
2
answers
779
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 ...
1
vote
2
answers
91
views
Private Testnet 404 issue
I am working on stellar private testnet setup, i have setup 3 stellar-core nodes and horizon, Account creation is working fine but data not showing for ledger, payment, transactions etc.
All 3 nodes ...
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 ...
1
vote
1
answer
268
views
Trades stream setup
I have setup streams for transactions, payments, operations, and effects with the method from stellar api guide:
this.server = new StellarSdk.Server('https://horizon.stellar.org');
this.stream = ...
2
votes
1
answer
70
views
How can I direct stellar laboratory to my own instance of horizon?
I cloned the stellar laboratory project and edited the /src/constants/networks.js file to switch the testnet horizon url to url of my own horizon instance.
This allowed me to get requests such as ...
2
votes
1
answer
120
views
Can't close server stream
The other existing question didn't work for me. (How to close a stream event?)
I set up a class to handle and switch streams. In the constructor, I define and initialize the stream this way:
...
2
votes
1
answer
268
views
Cannot transfer money on standalone network
I'm attempting to transfer funds from the root account to another account on a private stellar network. When I attempt to run the code below (which is basically copied from the examples), I get an ...
2
votes
1
answer
89
views
Issue with Submit Transaction
Am using Java SDK and Horizon Testnet.
Issue is when i submit a transaction using server.submitTransaction method i get following exception, please let me know if you need any more information
javax....
2
votes
1
answer
256
views
Receiving error when posting a transaction to Horizon
I am attempting to create a stellar-core and horizon node running under Travis-CI. (Existing solutions do not work for macOS, as Travis does not support Docker instances for test builds.) The ...
1
vote
1
answer
49
views
What is the default limit on the number of transactions returned for a `Server.transactions` request?
Using the Stellar Javascript SDK, what is the maximum number of transactions that will be returned for a request to server.transactions().forAccount(accountId).call() before I have to worry about ...
2
votes
1
answer
88
views
Trustline Created At from Horizon Database
I try to find when is trustline to an asset is created in horizon database. I joining history_effects, history_accounts, history_operations and history_transactions. I got created_at field on ...
1
vote
1
answer
217
views
Need help getting result_codes using JavaScript SDK on Node. Failed to make a payment
I'm using the JavaScript SDK in Node and have run into a problem making payments on the testnet. I catch the error but am unable to parse it to get at the result_codes which show as [Object] when I ...
1
vote
1
answer
404
views
horizon db clear
I run the following commands:
horizon db clear
horizon db backfill
Error:
2018/03/24 14:29:55 network-passphrase is blank: reingestion requires manually setting passphrase
How to reingest the ...
2
votes
1
answer
2k
views
Error tx_bad_seq
In almost every case, this error indicates that the transaction submitted in the initial request will never succeed. There is one exception: a transaction that fails with the tx_bad_seq result code (...
2
votes
2
answers
515
views
Account IDs not working for Horizon Testnet API
I am testing the Accounts endpoint on the Horizon testnet API. On this documentation page, there is the sample address:
GA2HGBJIJKI6O4XEM7CZWY5PS6GKSXL6D34ERAJYQSPYA6X6AI7HYW36
Which when plugged ...
2
votes
2
answers
241
views
Possible to get a list of account holders satisfying certain criteria using Horizon?
I would like to do some analysis of the layout of the Stellar network (maybe some basic graph theory and stats) and I would like to grab a list of all account holders that have had a payment operation ...
1
vote
1
answer
44
views
how to move stellar lumens locally in the same node? like bitcoin-cli move
I am now making integrated API in my company exchange. Now, looking for "move" function in horizon.
Is there any command like the below?
bitcoin-cli move "timotei" "akiko" 0.01 6
2
votes
1
answer
209
views
Horizon DB Initialized with Arbitrary Base(?)
Settings: Private network, 4 nodes running good and validating each other. Now I try to add a 5th node for testing, upon encountering an Horizon ingestion issue.
this is how I made the node "5a" (...
1
vote
1
answer
363
views
Horizon not Synchronizing ("import session failed: failed to load header: sql: no rows in result set" pid=8077)
<< Background >>
Private network of 4 nodes on 4 VMs, hosted on same server.
Core and Horizon built on 1 VM, and then 3 copies were made from this VM. NODE_SEED (core) & corresponding IP (...
2
votes
1
answer
235
views
How does the Bridge server get notified by Horizon after submitting a transaction and Compliance Server is also present?
I am trying to understand how the Bridge server gets notified by Horizon after a payment has been completed. Assuming an Anchor set up with Bridge, Compliance and Federation servers, my understanding ...
5
votes
2
answers
891
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}/...
1
vote
2
answers
94
views
How Horizon makes use of stelar-core?
By definition Horizon acts as the interface between stellar-core and applications, and apparently it needs access ... HTTP API that is published by stellar-core.
Is there a place where this API is ...
5
votes
2
answers
927
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" --...
3
votes
1
answer
616
views
How to obtain our token's current price
We issued a token on Stellar using stellar API. We need to show the price of our token on our website. How we can do that? Is this available using Stellar API?
2
votes
1
answer
63
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": "...
1
vote
1
answer
140
views
How could I create an AutoSequence in a private testnet with the golang SDK?
With the DefaultTestNetClient implementing the SequenceProvider interface, when we use a private testnet, how would we need to implement this since without it (I guess) transactions cannot be ...
2
votes
2
answers
430
views
Unable to create a new offer on stellar platform using nodejs
As per stellar documentation they provide manageOffer function to create, update and delete an offer, i am enable to use this function can anybody please help me to give me some instructions or any ...
1
vote
2
answers
244
views
How are Stellar transactions distributed to validators?
When I submit a transaction and post it to a Horizon endpoint what process determines which validator will handle the transaction? Do client apps have any visibility or control over this?
4
votes
3
answers
273
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 ...
1
vote
2
answers
467
views
Create & fund account via Horizon API
How can I create a new account in testnet with just an HTTP call to the Horizon rest API something like this:
serverip:8000/friendbot?
The docs say to use an SDK, but I want to integrate from an ...
4
votes
1
answer
147
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 ...
1
vote
4
answers
265
views
What is the best (or most common) way to write smart contracts for Stellar?
I understand from https://stellar.stackexchange.com/questions/92/is-something-like-smart-contracts-possible-in-stellar that there is no built-in way to do so, however maybe there is some kind of an ...
5
votes
3
answers
314
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 ...
2
votes
1
answer
86
views
Stellar Ledger / Hash uniqueness
I've seen many transactions with the same hash. However, is it safe to say that ledger/hash pairs are unique and there are no scenarios where two transactions on the same ledger share a hash?
1
vote
1
answer
27
views
Effects by ledger endpoint never returns any effects
Is the effects by ledger endpoint broken or not yet implemented?
I imagine ledgers contain many events, but whichever I check there are no effects.
3
votes
1
answer
282
views
Issue with Stellar Quickstart Docker Image
I'm trying to run the docker stellar/quickstart image. I launch it with:
docker run -d -p "8000:8000" --name stellar stellar/quickstart --testnet
I've left it running for quite some time but it ...
4
votes
2
answers
356
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 ...
2
votes
1
answer
186
views
How to access the "All Operations" Horizon endpoint using the Go SDK?
I'm working on an inflation pool, using the go SDK. However the client/horizon package doesn't expose all the horizon endpoints (the Client Interface only has Root, HomeDomainForAccount, LoadAccount, ...
4
votes
1
answer
132
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 ...
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, ...
14
votes
4
answers
455
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?
7
votes
1
answer
164
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 ...