Questions tagged [operations]

For questions regarding Operations within the Stellar Network.

Filter by
Sorted by
Tagged with
1 vote
1 answer
28 views

"Ae.sourceAccount is not a function" when deleting multiple offer operations in single transaction

Basically deleting multiple offers with manageSellOffer operations is causing the error "Ae.sourceAccount is not a function" All other transactions are functional using my transactionBuilder ...
0 votes
0 answers
11 views

number of accounts

Is there an easier way to discover the number of accounts than inspecting every ledger for create_account operations? (I'm looking on a xlm clone so there's only 6mill ledgers) I wrote a python script ...
  • 1
0 votes
1 answer
26 views

Stellar operations priority

What order is used to execute operations in ledger? I mean those operations who passed fee filter Sorted by time of submission fee random order? I tried to find this information in docs, but no luck
  • 101
1 vote
2 answers
53 views

Unkown "create_claimable_balance" operations on my account

I've just created a new account (in Public network) and have funded it with some XLM. Only 2 minutes after, this same account has been subject to up to 9 "create_claimable_balance" ...
  • 11
0 votes
1 answer
31 views

Stellar token vs contract - is it the same?

I've just learnt that Ethereum tokens are also smart contracts (and the opposite is not necessarily true): https://bitcoin.stackexchange.com/questions/74240/token-vs-contract-are-they-the-same https://...
2 votes
1 answer
19 views

Query amount transferred after account merge operation

I need to check the amount of LMX that were transferred to the destination account after an account merge operation. But when checking the list of operations for the destination account, the related ...
  • 21
1 vote
1 answer
47 views

How to properly set 'Value' in a ManageData operation on Stellar-SDK in Python?

I'm trying to set up a managedata operation. I added the following to my transaction: .append_manage_data_op(data_name="Hello", data_value="World") However, it doesn't go through. ...
2 votes
0 answers
393 views

Unable to upgrade legacy account with launch.stellar.org

I am trying to upgrade my legacy account using the method listed in the FAQ: https://www.stellar.org/community/faq#how-do-i-upgrade-from-the-old-network To upgrade from the old network, log in here: ...
  • 21
0 votes
1 answer
62 views

can not delete create passive sell offer

in stellar docs (https://developers.stellar.org/docs/start/list-of-operations/#create-passive-sell-offer) Amount of selling being sold. Set to 0 if you want to delete an existing offer. if I set ...
1 vote
2 answers
49 views

Storing image file on stellar network

I am trying to insert an image into Stellar private network. I have gone through all the operations but did not find anything. Any new update with Stellar protocol version 12?
1 vote
3 answers
95 views

Transactions vs Operations

Stellar offers a model in which Operations (ops) are aggregated into Transactions (tx) which are aggregated into blocks. You can stuff 100(?) ops in a tx and 100(?) txs in a block (or ledger). but ...
  • 1,581
0 votes
0 answers
53 views

Stellar a viable long-term solution to use on my site?

I just stumbled across Stellar today and it looks very promising. I'm working on a new personal project idea and was searching for a way to build a Venmo-like feature into my app when I discovered ...
4 votes
1 answer
304 views

Stellar channel implementation is giving an error "this.source.sequenceNumber is not a function"

i am trying to implement stellar channel concept. i am following stellar channel link. I have created 6 channel accounts. Below is the programme i wrote var destinationId = '...
2 votes
1 answer
249 views

op_cross_self - while making a new offer

What is op_cross_self error? I can create offers for 2 Assets ( selling and buying ). But when creating a reverse offer for same asset, it's throwing : { transaction: 'tx_failed', operations: [ '...
1 vote
1 answer
91 views

Is Operation Id unique?

I am confusing about operation id. Is it unique within the network or within a transaction? In other words, will it be enough to store only OperationId in DB or should the Primary Key be a complex (...
1 vote
1 answer
73 views

Escrow account releases funds imediately when configuring lock-in period

Hoping for a simple scenario following This thread: 1) Creating wallets from master accounts 2) Funding the escrow wallet 3) Giving the lock - in time bound period 4) Releasing the amount locked ...
0 votes
2 answers
69 views

Why in the stellar network the price for 1 transaction and 1 operation is not equal to the price for 1 transaction and 100 operation?

Why in the stellar network the price for 1 transaction and 1 operation is not equal to the price for 1 transaction and 100 operation? In 2 case the network load will be less? (if 100 transactions ...
  • 41
3 votes
2 answers
615 views

Why transaction operation "op_malformed"?

As I understand "If one operation is wrong then the whole transaction is wrong" Trying to find the cause 'op_malformed' I already read it "Transaction Malformed" I never found a mistake This is ...
  • 41
1 vote
1 answer
478 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:...
  • 41
1 vote
1 answer
70 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). ...
  • 539
4 votes
1 answer
34 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
3 answers
85 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
1 answer
58 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 ...
2 votes
0 answers
26 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 ...
  • 649
2 votes
0 answers
39 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
1 answer
129 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/...
  • 193
4 votes
2 answers
108 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
2 answers
115 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 (...
  • 95
4 votes
3 answers
620 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
2 answers
401 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 ...
2 votes
2 answers
142 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 ...
4 votes
1 answer
115 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
1 answer
59 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 ...
  • 33
2 votes
1 answer
116 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 ...
  • 108
4 votes
1 answer
121 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 ...
  • 143
2 votes
1 answer
328 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 ...
  • 193
6 votes
1 answer
122 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
1 answer
229 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 ...
  • 157
1 vote
1 answer
76 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
1 answer
214 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 ...
4 votes
2 answers
138 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
1 answer
232 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 ...
  • 3,367
2 votes
1 answer
61 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,367
3 votes
1 answer
471 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 ...
  • 139
4 votes
1 answer
140 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 ...
  • 193
2 votes
1 answer
81 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?
  • 121
7 votes
1 answer
143 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 ...
  • 173
1 vote
1 answer
84 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?
  • 3,367
6 votes
1 answer
158 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 ...
  • 404
2 votes
2 answers
146 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 ...
  • 153