We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [operations]

For questions regarding Operations within the Stellar Network.

Filter by
Sorted by
Tagged with
1
vote
3answers
40 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 ...
0
votes
0answers
37 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 ...
2
votes
0answers
31 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 = '...
1
vote
1answer
50 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: [ '...
0
votes
2answers
50 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 ...
1
vote
1answer
47 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
1answer
41 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 ...
1
vote
2answers
110 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 ...
1
vote
1answer
427 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
1answer
48 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). ...
4
votes
1answer
18 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
48 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
45 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
22 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
25 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 ...
1
vote
1answer
82 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.
3
votes
1answer
84 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
61 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
69 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 (...
1
vote
2answers
103 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 ...
2
votes
2answers
302 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
248 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 ...
3
votes
1answer
37 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 ...
2
votes
1answer
78 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
52 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 ...
4
votes
1answer
81 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
219 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
198 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
109 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
171 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
49 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
182 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 ...
8
votes
1answer
161 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 ...
1
vote
0answers
35 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 ...
3
votes
2answers
104 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
48 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": "...
1
vote
1answer
167 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
votes
1answer
301 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
122 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
69 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
117 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
68 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
141 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
130 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 ...
5
votes
1answer
57 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 ...
11
votes
1answer
126 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 ...