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.

0
votes
0answers
35 views

Multiple SetOptions in a Transaction

I want to create a transaction with 2 SetOptions operations. The reason I need multiple SetOptions is because one SetOptions for changing the weights of the source account and second SetOptions is to ...
3
votes
1answer
34 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 ...
1
vote
0answers
20 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 ...
2
votes
1answer
30 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
53 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
40 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
101 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
104 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
60 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
28 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
42 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
55 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
54 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
92 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
133 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
81 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
134 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
29 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
112 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
75 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
116 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
42 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
194 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
103 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
55 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
91 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
55 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
124 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
95 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
63 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
46 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
123 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
109 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 ...