Questions tagged [horizon]

For questions regarding the Horizon API.

Filter by
Sorted by
Tagged with
2
votes
2answers
450 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....
2
votes
1answer
76 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 ...
2
votes
1answer
227 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 ...
1
vote
1answer
446 views

If one operation is wrong then the whole transaction is wrong

Found such a problem if one operation is wrong then the whole transaction is wrong. ZuluCrypto\StellarSdk\Horizon\Api\PostTransactionResponse Object ( [result:protected] => [rawData:...
1
vote
2answers
90 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 ...
1
vote
2answers
25 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": "...
1
vote
4answers
245 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 ...
1
vote
1answer
43 views

Anyone else seeing an error with stellar-dotnet-sdk (AccountResponse - accountId cannot be null)?

I've been using stellar-dotnet-sdk for months; today, I get an error while trying to instantiate an AccountResponse object. AccountResponse.cs, line 147 (AccountId = accountId ?? throw new ...
1
vote
1answer
335 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 (...
1
vote
1answer
188 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 ...
1
vote
1answer
27 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 ...
1
vote
1answer
23 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.
1
vote
1answer
36 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
1answer
25 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 ...
1
vote
2answers
307 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 ...
1
vote
1answer
33 views

client_name=undefined client_version=undefined in horizon logs

I have set up a local Horizon instance, version horizon-v0.16.0. I can start horizon, but when I hit the url http://ip:8000 I am getting the following messages in the logs: time="2019-02-25T12:25:...
1
vote
1answer
98 views

I'm really confused on the rate limit… Horizon.env has just an hourly rate limit (72000 in docker image). But http headers claim it is 100/sec?

This answer tells me to look at HTTP headers to determine the rate limit. It is 2 values: X-Ratelimit-Limit: 101 which is # per window X-Ratelimit-Reset: 1 which is the winlow size (1 second). But ...
1
vote
1answer
279 views

How do I disable rate limiting on my local Horizon server?

The docker quickstart doesn't tell me how to disable rate limiting. Also, the Go SDK which we are using seems to have a rate limit function as well... I'm guessing that is just enforcing the rate ...
1
vote
2answers
27 views

Trades end point not working

Following url has stopped working https://horizon-testnet.stellar.org/order_book/trades?selling_asset_type=native&buying_asset_type=credit_alphanum4&buying_asset_code=FOO&...
1
vote
2answers
559 views

How can I determine if a transaction is confirmed, pending or successful after submitting to the Stellar network?

If someone sends me lumens, what happens if the transaction neither succeed nor fails? How can I determine whether I will receive lumens or not when the transaction is pending? From the getting ...
1
vote
1answer
544 views

How to be a Stellar Anchor?

There is currently not much info about this. I want to provide the ability to exchange for XLM using the local fiat currency I am at.
1
vote
2answers
170 views

How many Lumens would I have to get in order to create a custom token?

I am currently working on creating a custom token on the Stellar network. Like here: https://medium.com/python-pandemonium/how-to-create-a-custom-token-on-stellar-network-in-python-abf8b2f7a6f8 I ...
1
vote
1answer
44 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 ...
1
vote
1answer
358 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 ...
1
vote
2answers
227 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?
1
vote
1answer
35 views

Are lumens required for a custom network?

New to Stellar so forgive me if this is not the smartest question, but are real lumens still required on a custom network? I would like to use the stellar blockchain for "transaction" ...
1
vote
1answer
23 views

Horizon v2.0.0 config with Captive Core for pubnet is any example?

I need setup a node for pubnet(mainnet) network watching node https://github.com/stellar/go/blob/master/services/horizon/internal/docs/captive_core.md#configure-captive-core is only testnet config and ...
1
vote
1answer
30 views

How to configure native currency in a private network

I would like to know how we can configure the native currency in a private network? I would like: Change the name of the native currency Change the number of native currency created in the first ...
1
vote
1answer
69 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
1answer
58 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
1answer
84 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
1answer
99 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 ...
1
vote
1answer
32 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 ...
1
vote
2answers
58 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
1answer
38 views

How to interpret the output of the assets endpoint

I'm looking to list all unique assets on the network, per this endpoint/sdk. I understand there are interesting public aggregations of this information, such as: https://stellarasset.com/ https://...
1
vote
1answer
95 views

Friendbot url - Horizon

I am setting up horizon in local for a private network. How to I configure friendbot url? Can anyone please explain working of this?
1
vote
1answer
44 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
2answers
85 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
2answers
79 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
1answer
231 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
1answer
199 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
1answer
1k 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 (...
1
vote
1answer
42 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
1answer
132 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
2answers
428 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
1answer
22 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
0answers
12 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
0answers
59 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
1answer
25 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 ...
1
vote
1answer
34 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 ...