Questions tagged [horizon]
For questions regarding the Horizon API.
244
questions
1
vote
1
answer
62
views
How to pull memo from a public key's historical transactions and save to an array?
Using Stellar's Javascript SDK
Goal
Output an array containing all the memos:
['324567567', 'anotherMemo', '239210923', '2349028509']
This array will be used to check against a database and ...
0
votes
1
answer
165
views
stellar horizon docker install error -history-archive-urls must be set when --ingest is set
I'm trying to install stellar core and horizon via docker:
and I get this error when start
horizon_1 | 2020/05/26 23:50:15 --history-archive-urls must be set when --ingest is set
$ docker ps
...
1
vote
0
answers
37
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 ...
0
votes
1
answer
195
views
horizon ingest the historical data
I'm running a new horizon v1.2 with ingest=true. It is connected to the stellar core with CATCHUP_COMPELTE enabled. (the status of the core is catching up 5%)
My question is what is the command to ...
1
vote
1
answer
329
views
Horizon reingest not working
I do run horizon db reingest range 6500 7104 in order to pull some missing entries to my validator.
I run into this error:
INFO[2020-05-04T15:52:55.425Z] Ingestion system initial state ...
2
votes
1
answer
90
views
Which Horizon "Post Transaction" responses are final and immutable?
I am working on the development of a software wallet. I am using Horizon Post Transaction API to post signed transaction. Following an issue I ran into, I am trying to understand which responses are ...
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 ...
2
votes
1
answer
507
views
How to connect to a stellar stand alone node?
My goal was to set up a small test network with two stellar nodes. Therefor, I forked the quickstart repo and made some small adjustments. I changed the public key and the network passphrase.
On my ...
1
vote
0
answers
73
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 ...
1
vote
1
answer
143
views
How to find a duplicated transaction or operation when receiving op_already_exists
Sometimes our back end is able to create a transaction in the stellar network, but for some instability or bug or unknown problem, discards the transaction hash.
When retrying the transaction after ...
1
vote
1
answer
48
views
Duplicate operation in transaction?
I'm having trouble understanding the operations of this transaction: https://horizon.stellar.org/transactions/f06c6a478b0caac5c8b33512100f70c1aa192bee3af7084f2b693df7f75689bd/operations
It seems the ...
5
votes
1
answer
55
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....
0
votes
1
answer
66
views
Path payment is taking only 4 hops BUT stellar is mentioning upto 6 hops
Let assets are A,B,C,D,E,F
I have created few orders like
A->B
B->C
C->D
D->E
E->F
Now, i have created an order where user1 is selling "F" to a destination user2 and the ...
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 ...
1
vote
1
answer
29
views
Given a public key, is there a way to find the assets issued by the account?
I'd like to know if there is a way to query all the assets of which the account is the issuer.
0
votes
2
answers
48
views
Horizon returns a 404 error upon querying just-submitted transactions
Upon the successful confirmation of a transaction submission, my app immediately queries the link to the transaction in the response. But I often receive a 404 error from Horizon. Sometimes I get a ...
0
votes
1
answer
89
views
Getting exception while establishing Trust Line
I am working on Stellar Python SDK after a year. When I ran my old script I got the error:
TypeError: __init__() got an unexpected keyword argument 'opts'
The code given below:
from stellar_base....
0
votes
1
answer
27
views
How does one use a certain version of Horizon when requesting?
I would like to use the 0.23 version of Horizon in this particular query below. How does one do that?
var server = new StellarSdk.Server("https://horizon.stellar.org");
var sourceAsset = new ...
1
vote
1
answer
94
views
strictReceivePaths not the same as strictSendPaths when reversed
I would assume that the strictReceivePaths would be the same as strictSendPaths when reversed. For example, query these:
strictReceivePaths:
https://horizon.stellar.org/paths/strict-receive?...
1
vote
1
answer
240
views
`pathPaymentStrictSend` transaction produces error `op_under_dest_min` howmuchever the `destMin`
Recreate this transaction on the Stellar laboratory (view XDR to see parameters):
AAAAAJ2XxPOBZhImQhYvufkgoiaUvlcAA3oYpZpxw4uO/...
1
vote
1
answer
53
views
Viewing trustlines for authorization required assets from an asset issuer perspective
From an asset holder perspective seeing which trustlines are approved or unapproved for authorization required assets is straightforward - we can see this with the is_authorized boolean on the account ...
1
vote
1
answer
45
views
How is operation ID calculated?
I am trying to understand how the integer operation ID returned by horizon REST API is calculated.
I found this answer which mentions the inputs of the calculation but does not show how to perform ...
0
votes
1
answer
187
views
Connection refused error in Horizon
Launching Horizon with stellar/quickstart docker image:
horizon db init --db-url postgres://stellar:123456789@127.0.0.1:5432/core --stellar-core-db-url postgres://stellar:123456789@127.0.0.1:5432/...
1
vote
2
answers
59
views
How do I return more than 200 entities at a time from Horizon?
I am running my own stellar node and horizon instance. When I try to get over 200 entities at once I get the error
curl -X GET "http://localhost:8000/transactions?cursor=&limit=201"
{
"type": "...
2
votes
1
answer
89
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 ...
0
votes
0
answers
13
views
What is the difference between the preconfigured packages and the binaries
We have different options for installing the stellar-core and horizon specially. What is the difference and where shall a new user start to be able to configure a custom anchor?
0
votes
1
answer
113
views
How to setup an anchor in Stellar network using Windows?
While there is a great deal of documentation on installing the packages, however, I couldn't follow it properly to install the stellar-core, horizon and Postgres database in windows. There is not ...
0
votes
1
answer
217
views
Getting up and running with a Stellar-Core and Horizon with a Database
I am new to the Stellar world and wanted to set up a node (Stellar Core, Horizon and a Database) for the first time to run as an anchor. However, I couldn't figure it out from the documentation how to ...
0
votes
1
answer
79
views
Exchanging fiat tether on SDEX
We have fiat tether tokens that we issued, each token is backed up by an equivalent amount on our bank account, currently we are able to switch between one tether into another using our own exchange ...
2
votes
2
answers
161
views
Getting all offers for a particular Asset (pair)
For a while now I'm trying to figure out how to get all offers for a particular Asset (or pair). As an example, StellarExpert lists all offers of MOBI on the following page: https://stellar.expert/...
0
votes
1
answer
147
views
Run core with catchup complete
I have a new stellar core instance with CATCHUP COMPLETE true and one stellar horizon instance with INGEST true. I'm totally new with stellar.
I've started the core node and it's catching up the data....
1
vote
1
answer
158
views
How to provide password when running horizon db migrate up command inside docker container?
I have issues with horizon, when inside the docker container I run horizon db clear and I get the output
There are 18 migrations to apply in the "up" direction.
...
2019/06/20 10:44:26 A database ...
2
votes
1
answer
74
views
Why failed transactions are not shown in Horizon in any way?
Anything I can get of the Horizon about the failed transactions is their count in a ledger. No other info is shown about them. Currently, no one can calculate lumen balance using horizon only because ...
1
vote
0
answers
52
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 ...
5
votes
1
answer
222
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 ...
1
vote
1
answer
86
views
the history-stale-threshold flag - what exactly happens when history is stale?
A recent(ish?) addition to the horizon configuration is the
viper.BindEnv("history-stale-threshold", "HISTORY_STALE_THRESHOLD")
the doc says:
"the maximum number of ledgers the history db is ...
0
votes
1
answer
236
views
Friendbot request fails with 400 (Bad Request)
I am trying to create an account on the stellar Test Network. I am using ASP .Net framework. But whenever I make a request and pass in the public key, I always get this error:
Response status code ...
1
vote
0
answers
70
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-...
2
votes
1
answer
130
views
How to relaunch a Testnet node to use the new Testnet after a reset while using the Docker quickstart container?
What are the recommended steps that should be taken to get a stellar testnet node using the quickstart docker reset on the new testnet?
Currently it is still using the old network by the looks of it,...
0
votes
1
answer
240
views
Transaction failure when using Stellar Go SDK
receiving the following errors related to horizon server:
handshake-1 env.sh[19791]: 2019/04/25 12:03:24 handlers.go:180: [ERR] Horizon error: "Transaction Failed". Check horizon.Error.Problem for ...
2
votes
1
answer
202
views
Does AUTO_MAINTENANCE setting clear Horizon DB?
I want to have in my node information only about the last 300000 ledgers. Should I always manually clean the DB or can I automate it?
I'm especially interested in the autocleaning of the Horizon DB.
0
votes
0
answers
168
views
Select failed: pq: relation "signers" does not exist
I have set up private Stellar Core and Horizon with 2 nodes. I am following this tutorial. I am first creating an account and then I am executing the code below. It is showing select failed: pq: ...
2
votes
1
answer
85
views
How to create an account on a private network?
I have already started a stellar private network. I need to generate an account on a stellar private network. I have a secret key and private key also. But I have a question about what should I enter ...
1
vote
2
answers
166
views
Exception while send Transaction using Java stellar SDK "TimeBounds has to be set or you must call setTimeout(TIMEOUT_INFINITE)"
I am getting the following Exception while performing send transaction using the Java Stellar SDK.
This is my send transaction code:
import org.stellar.sdk.AssetTypeNative;
import org.stellar.sdk....
0
votes
1
answer
60
views
Connecting private set of quorum of 3 nodes on stellar test network
I have a 3 nodes running on a private network paraphrase and all of them are validators. Able to send the transactions over horizon.
Now, can I connect my quorum of 3 validators with test-network ? ...
0
votes
1
answer
41
views
Do I Need to fund Stellar with Lumens for custom token based wallets too?
I want to create custom token for my system but it seems that I can not create a wallet unless I fund it with 1 XLM? Is it true? If not why my wallet is not being created?
Thanks
2
votes
2
answers
104
views
Using SDF's Horizon server for Production Systems
I know SDF provides a public Horizon server too. My question from those who are using for their production apps, is it reliable enough or would you suggest running your own Horizon server?
1
vote
2
answers
436
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 ...
2
votes
1
answer
79
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 ...
2
votes
1
answer
75
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-...