Questions tagged [horizon]
For questions regarding the Horizon API.
246
questions
1
vote
1
answer
56
views
Why do transactions sent by a channel account do not appear in the operations history for the source account?
I'm currently writing an app that facilitates multi-sig transactions, and one of the issues we faced was the fact that to enable multiple transactions to be created and signed, we had to use channel ...
1
vote
1
answer
158
views
Minimum account balance Changed?
The base_reserve_in_stroops says 5,000,000 (0.05 XLM) in the following URL. This is a recent ledger entry. Does this mean it only takes 0.1 XLM (2 * 0.5 XLM) to create an account now?
https://horizon....
1
vote
2
answers
100
views
Enable https for horizon in the docker-stellar-core-horizon quickstart template
Is there an easy way to enable https for the horizon server?
If not, how would you recommend to update the docker file to enable https?
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 ...
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 = ...
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
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
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 ...
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 ...
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.
1
vote
0
answers
6
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 ...
1
vote
0
answers
8
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 ...
1
vote
0
answers
21
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 ...
1
vote
1
answer
29
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.
1
vote
1
answer
65
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,...
1
vote
0
answers
15
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-...
1
vote
1
answer
119
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 ...
1
vote
1
answer
228
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
...
1
vote
0
answers
95
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,...
1
vote
0
answers
72
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 ...
1
vote
0
answers
83
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 ...
1
vote
0
answers
104
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 # ...
1
vote
0
answers
38
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 ...
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 ...
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 ...
1
vote
0
answers
37
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
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 ...
1
vote
0
answers
74
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-...
1
vote
2
answers
186
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....
1
vote
0
answers
55
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 {}'...
1
vote
0
answers
30
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 ...
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 ...
1
vote
0
answers
83
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)
...
1
vote
2
answers
280
views
How to get account historical balances?
how would I go about obtaining a list of historical data (tokens held, their quantities and a timestamp) for an address? The stellar expert explorer has a way of generating this kind of data, an ...
1
vote
2
answers
73
views
Why do request with the SDK work without starting a local Node?
I followed this guide to create an account and get the balance. I am also running this docker instance.
I am confused (and impressed) that I don't have to start a node (e.g. the docker instance) or ...
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
0
votes
1
answer
126
views
How stellar prevent DDoS
How stellar prevent DDoS attack from rest API (https://horizon.stellar.org/)
0
votes
2
answers
58
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
28
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 ...
0
votes
1
answer
42
views
How to list all unique contracts on the network?
From a study comparing smart contracts on Ethereum and Stellar, there's a point in the study about downloading all contracts:
Testing Smart Contracts: Ethereum vs. Stellar
The researchers from ...
0
votes
1
answer
95
views
Get all accounts and sort by balance
How can I get all accounts and sort by the balance? I'd like to build a list of all accounts and then sort them by the balance. I realize the data set would be large, but was thinking maybe via a ...
0
votes
1
answer
2k
views
Receiving ETIMEOUT 104.20.58.10:443 error when request to `horizon.stellar.org`
ETIMEOUT 104.20.58.10:443 I sometime receive this error when request to horizon.stellar.org. What is this error?
0
votes
1
answer
40
views
Which Horizon endpoint GETs current token prices on the DEX?
Which Horizon endpoint should we be using to access current prices for tokens?
I've read through the docs entirely and am assuming the order_book endpoint contains the current price in its response. ...
0
votes
1
answer
53
views
Transaction not supported
I configured a private Stellar blockchain network composed of 2 nodes. When I try to create an account on this private blockchain I get the following error:
stellar_sdk.exceptions.BadRequestError: {
...
0
votes
2
answers
108
views
Is there any option to get the price of XLM via python stellar_sdk or API?
For example XLM = $0.3537 now
Is there any option or API&SDK script for it?
or Do I have get it from other website?
0
votes
1
answer
72
views
Account' object has no attribute 'sign_decorated
I am trying to pay 2 tokens and I am getting this error:
sig = signer.sign_decorated(tx_hash)
AttributeError: 'Account' object has no attribute 'sign_decorated'
My code given below:
def ...
0
votes
1
answer
98
views
Performance problem with ingesting Horizon
We want to setup Stellar Full Archive with Horizon
Using the https://github.com/satoshipay/stellar-core-parallel-catchup we managed to synchronized Stellar Core DB and build full archive.
After ...
0
votes
1
answer
208
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 ...
0
votes
1
answer
74
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 ...
0
votes
1
answer
202
views
Connection refused error in Horizon
Launching Horizon with stellar/quickstart docker image:
horizon db init --db-url postgres://stellar:[email protected]:5432/core --stellar-core-db-url postgres://stellar:[email protected]:5432/...