Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [operations]

For questions regarding Operations within the Stellar Network.

1
vote
1answer
21 views

Threshold - Transaction processing meaning?

As per https://www.stellar.org/developers/guides/concepts/multi-sig.html Low security consists of "Transaction processing" (Charging a fee or updating the sequence number for the source account). ...
0
votes
1answer
31 views

How can I add UTXO (bitcoin) transaction in Stellar Lab?

I know that there are no implementations of the above, but I am trying to add UTXOs into Stellar. In vanilla Stellar, I use the Stellar lab to construct operations like createAccount, payment etc. Now,...
4
votes
1answer
12 views

Merging account ACCOUNT_MERGE_DEST_FULL error case

I'm trying to understand the different scenarios where merging an account into another one produces an error case. For the most part, it's all pretty straightforward, but I'm struggling to come up ...
1
vote
3answers
39 views

Payment operation listener firing off multiple times for single operation

I have implemented a payment listener in my mainActivity. It is working, except that the majority of the time it is firing off multiple times (usually 2 or 3 times) for a single payment receipt. ...
3
votes
1answer
40 views

Why are some operations missing when I query operations by account?

When querying the Horizon API for operations related to an account, some are unexpectedly missing. The documentation says that the endpoint I'm using represents all operations in valid transactions ...
1
vote
0answers
21 views

How to create my own operations

I'm looking to alter stellar-core for my project, which deals less with financial transactions and more with data storage. I want to essentally rip out some of the operations such as allowTrust and ...
0
votes
0answers
4 views

Why does the Horizon testnet API not display all of the operations of an account when queried?

I want to be able to display the full list of payment operations performed to and from an account. I can view all of the payments and other operations all the way back to the account creation on ...
1
vote
0answers
22 views

How to filter only the most recent n number of operations of an account for only a specific Asset?

I had a function that returned the most recent 3 payment operations for an account. But I wante to change it so that it would only return the most recent 3 payment operations for only the asset being ...
3
votes
1answer
43 views

Stellar Java SDK: Retrieve Account Data

I can see how to add data to an account using ManageDataOperation. But is there a way to retrieve the same data using the Java SDK? I fund a JS example: https://www.reddit.com/r/Stellar/comments/...
4
votes
2answers
57 views

Retrieving operations for a transaction unexpectedly slow?

I am trying to retrieve the operations for the transactions of a given ledger. First retrieve the transactions: List<TransactionResponse> transactionResponses = this.server.horizonServer() ...
4
votes
2answers
45 views

How to implement OTC trading of Stellar assets?

Stellar has its distributed exchange for trading currencies and other assets. It has a public orderbook with passive orders. So far so good. But in many use cases, financial institutions prefer OTC (...
2
votes
2answers
130 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
2answers
121 views

Get the operation record of a payment

Using the javascript sdk, I'm sending a payment like so: const operation = Operation.payment({ destination: toAddress, asset: asset, amount: amount.toString() }); const account = await ...
1
vote
2answers
63 views

Expected behavior of omitting path attribute in Path Payment

When creating a pathpayment, the ideal use case would be to not have to provide a path, but rather rely on the stellar path finding algorithm to resolve the best (i.e. cheapest) path and then execute ...
3
votes
1answer
31 views

(Dup for different SDK) How can I build a transaction with a dynamic list of mutators or operations using the JS SDK?

This is exactly what I am after but in JS. How can I build a transaction with a dynamic list of mutators or operations using the Go SDK? Something like this would be great, and then it'd be easy to ...
3
votes
1answer
45 views

How to check if a custom currency cannot longer be issued

I am trying to check for various currencies, if they have set the master weight of the source account below the medium threshold of the source account. According to the documentation that would mean ...
2
votes
1answer
60 views

Unable to set optional 'Source Account' on 'Manage Data' operation

On all other operations I can use a different 'Source Account', but if I try to do it on 'Manage Data', I get: 'tx_failed' when sending with Python-sdk no changes applied to XDR if I try it in ...
3
votes
1answer
66 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 ...
2
votes
1answer
120 views

How to get Transaction amount from API?

I want to display all transactions of given users. Using the Java API, I presume I would do: server.transactions().forAccount(destination2).execute(); I would then page through the result. Each item ...
1
vote
0answers
160 views

The operation couldn’t be completed. stellarsdk.StellarSDKError error 0 [closed]

First what is StellarSDKError 0? Second, how did you find the answer? As far as I can see, error documentation is basically nonexistent: https://www.stellar.org/developers/horizon/reference/errors....
5
votes
1answer
88 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. ...
1
vote
1answer
155 views

Unable to save data using Horizon on private testnet

I have a Horizon server 0.12.3 and Stellar-Core 9.2.0rc6 running locally. When I send a create account operation using the root account as the source, the new account creates properly. However, when ...
1
vote
0answers
31 views

Bonds on Stellar, can we make a use case? [duplicate]

Assume I create an asset on Stellar: It's a 5 year bond that pays annual interest of 3%. The asset has an ISIN code and will be distributed to around 20 investors. The investor should be able to sell ...
1
vote
1answer
42 views

How to retrieve Operations for a certain Asset?

I've been reading the js-stellar-sdk and I didn't find a way to retrieve the operations for a certain Asset. How should be this done?
1
vote
1answer
121 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 ...
3
votes
2answers
80 views

Payment refund processing

Is there a better way to send a refund on the payment received via transaction_id? Or no other way but to send back a new payment operation back to the sender?
1
vote
1answer
127 views

Trustee vs trustor in allow trust operation

When it comes to trust lines, I had assumed the trustor is the account trusting the asset and trustee is the issuing account. This supposition is backed up by the horizon API responses. In the XDR ...
1
vote
1answer
43 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": "...
3
votes
1answer
219 views

Can anyone explain what passive offers achieve?

I've read https://www.stellar.org/developers/guides/concepts/list-of-operations.html#create-passive-offer but I can't quite wrap my head around the purpose of a passive offer. Can anyone explain their ...
3
votes
1answer
107 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 ...
2
votes
1answer
62 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?
6
votes
1answer
101 views

How much extra balance is needed per DataEntry

The documentation for the Manage Data operation states that: An account can have an arbitrary amount of DataEntries attached to it. Each DataEntry increases the minimum balance needed to be held by ...
1
vote
1answer
58 views

Which operations are required to accept an offer?

If an account has posted an offer, what is/are the operation(s) required to accept that offer? Is it a combination of Payment and Manage Offer?
5
votes
1answer
132 views

Why does my fully synced Horizon/Stellar Core node return different data from horizon.stellar.org?

Why does my fully synced Horizon/Stellar Core node return different data from horizon.stellar.org? I setup my Stellar Core Docker image with CATCHUP_COMPLETE=true and it took days to fully ...
2
votes
2answers
98 views

Relation between Operation, Payemnt and Effect

What is the relation between “Operation of type: payment”, “Payment” and “Effect of type: account_credited”? Can “Payment operation” be submitted and not results in “Effect” (e.g. because of ...
1
vote
1answer
69 views

How can I build a transaction with a dynamic list of mutators or operations using the Go SDK?

I'm trying to submit many operations in a single transaction that are built up dynamically. How can I convert these operations to a Stellar Transaction? Please provide code samples if possible.
5
votes
1answer
49 views

Does the ratio of number of transaction of number of operation mean something?

I've observed the ratio of transaction count and operation count for a while and there is high fluctuation in the relationship between them. Could someone explain me how the ratio reflects the growth ...
7
votes
1answer
135 views

Is there a way to unset home domain and inflation destination options?

Using the Javascript SDK I'm trying different ways of unsetting the home domain and inflation destination options without success. Is this something that is supported at all on the network, is it just ...
11
votes
1answer
116 views

Offers have an amount and a price. Why not just two amounts?

The Manage Offer operation has in its parameters: The amount of selling asset being offered (integer) The price willing to be accepted (a fraction defined as (integer, integer)) Would it not have ...