Questions tagged [transactions]

Transactions are commands that modify the ledger state. Among other things, Transactions are used to send payments, enter orders into the distributed exchange, change settings on accounts, and authorize another account to hold your currency. If you think of the ledger as a database, then transactions are SQL commands.

Filter by
Sorted by
Tagged with
1 vote
2 answers
153 views

How do I keep track of payments to multiple address

To track the payments we can use streaming API is good solution. already answered. In my case I have a master account(M) as well sub-master(SM) account, I need to have multiple sub-master(SM) ...
Prashant Gangwar's user avatar
0 votes
1 answer
96 views

How to check if a transaction went through?

When we submit a transaction to Horizon, we either get a success response or an error response. In the case of an error response, we can save the transaction in XDR format and resend it. But, if we ...
Prashant Prabhakar Singh's user avatar
1 vote
2 answers
691 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 ...
Prashant Gangwar's user avatar
6 votes
1 answer
139 views

Transaction created_at and ledger close time

I am wondering what the created_at timestamp in every transaction actually represents. Is the the time the transaction is signed or is it the time it was applied to the ledger? If it is not the later, ...
Jake B's user avatar
  • 163
0 votes
1 answer
55 views

how to trace the state of a transaction after submit?

After submitting a transaction I want to verify that transaction. Is there any API or way to check or verify the transaction? const sendMultiSignatureTransaction = async (receiverPublicKey, ...
mohammad sadra karimi's user avatar
3 votes
2 answers
65 views

How does a typical Stellar end-user distinguish between assets with same 4 or 12 digit code?

My understanding is that Assets created on the Stellar Network are identified with the combination of their 4 or 12 digit code plus the issuing address. I'm imagining a situation where an Asset on ...
carleverett's user avatar
5 votes
1 answer
69 views

What are the message size limitations of stellar consensus protocol?

The question is a two part question: What is the message size limitation of stellar consensus protocol? Also how does the message size affect the TPS of stellar?
tatepairing's user avatar
3 votes
1 answer
123 views

Why doesn't Stellar match the other order?

I have a question about Stellar exchange matching engine. Scenario: I want to trade AA coin for BB coin (2 Buy orders & 1 Sell order) Buy Orders (Buy BB | Price 1 BB = 90 AA) Order#1 Volume 10 ...
Pakornsin's user avatar
2 votes
2 answers
200 views

Error while submitting change trust transaction

I created an anchor account which issues USD asset. It worked properly. But now when I modify the program where the anchor issues one more asset called INR and I am creating a trustline for both the ...
Siddharth Gupta's user avatar
2 votes
2 answers
75 views

Using Stellar for Proof of Existence

I know Stellar is designed for transfering funds and holding tokens, but I thought about using it for proof of existence. Stellars transaction fees are much cheaper than Ethereum and transactions are ...
KingOfCoders's user avatar
2 votes
1 answer
51 views

What happens when transaction fails to be applied?

What happens when a network comes to a consensus about a transaction, but that transaction fails to get applied on some nodes but not all nodes? A more concrete example is createAccount operation. ...
B.Li's user avatar
  • 649
2 votes
0 answers
44 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 ...
John Murphy's user avatar
1 vote
1 answer
114 views

How to properly set `baseReserve` & `baseFee` to 0

I ran a basic private network with the line COMMANDS=["upgrades?mode=set&upgradetime=1970-01-01T00:00:00Z&basefee=0&basereserve=0"] inside of my stellar-core.cfg file on all of my nodes (5 ...
B.Li's user avatar
  • 649
3 votes
1 answer
118 views

Is there any way of knowing total transactions count (pagination)?

In the transactions endpoint e.g.: https://horizon-testnet.stellar.org/accounts/GAZHWW2NBPDVJ6PEEOZ2X43QV5JUDYS3XN4OWOTBR6WUACTUML2CCJLI/transactions?cursor=&limit=20&order=desc Is there any ...
zig's user avatar
  • 133
4 votes
1 answer
89 views

Does stellar takes fee for resolving a federated address?

I did a transaction from my one of my stellar accounts to my federated stellar address which is under another account. But while sending I made the mistake of not giving the complete federated address ...
Anthrose's user avatar
  • 131
5 votes
1 answer
55 views

Stellar address prefix bitwise operator rationale

Stellar prefixes public keys with G. Why do they use a bitwise operation VersionByteAccountID VersionByte = 6 << 3 to get the base 10 value 48? Javascript "returns the default numerical values", ...
aroooo's user avatar
  • 267
3 votes
1 answer
62 views

How to derive a number of open Offers for a transaction set that hasn't been fully submitted to the network yet

Please help to find out a possible solutions to the following problem: For a dedicated "Minimal Balance" service one would need to know a number of account entries among which there are Offers ((2 + #...
Yura Lazarev's user avatar
2 votes
1 answer
157 views

Error while transaction submission in the private network

So I am trying to do a transaction in the private network, I have named it standalone, I am using SSL. I started the network using docker, then created a keypair, then in another terminal ran node to ...
Deb's user avatar
  • 233
3 votes
2 answers
281 views

Verifying a transaction

For doing a payment from a distribution account i'd like to use the destination account as a channel. Therefore i'd like to implement the functionality as follows: there are 3 accounts involved: ...
Udo Polder's user avatar
4 votes
2 answers
127 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 (...
Roman's user avatar
  • 195
4 votes
2 answers
467 views

How to Build transaction XDR before sign it

I want to build a transaction and convert that as XDR before sign that transaction. As i found we need to build adn sign the transaction before convert that as XDR specially in java and GO SDK. Is ...
Sharmilan's user avatar
  • 421
3 votes
1 answer
199 views

What is an easy way to create a transaction on multiple wallets at once?

Say I have 10 wallets and want to send their content to a master wallet and then remove trustlines on these wallets, what would be the easiest way to do it? Thanks!
user1003's user avatar
1 vote
2 answers
135 views

What is the syntax of the 'tx' (transaction) command, to execute a transaction?

So using docker I started a private Stellar Network by typing in the below command: docker run --rm -it -p "8000:8000" --name stellar stellar/quickstart --standalone Then I opened another terminal ...
Deb's user avatar
  • 233
-2 votes
1 answer
103 views

Dynamic amount of operation

How can I add multiple operations in one transaction using the Go SDK? I am trying to add a dynamic amount of payment operations under 1 transaction and that seems to be not possible in Go as it's ...
Sharmilan's user avatar
  • 421
3 votes
2 answers
134 views

Can we add more fields on stellar?

I was wondering how to add more fields on transactions like the memo field.Is it possible to do so.. How can I do that?
pri's user avatar
  • 115
2 votes
0 answers
122 views

Horizon Error 6

I'm using the iOS SDK to attempt to submit a testnet transaction, but it fails with error 6, which I believe is BAD_AUTH, too few valid signatures/ wrong network. Here is my code: static func ...
p3scobar's user avatar
  • 117
3 votes
1 answer
131 views

Is a payment returned through horizon api call: "Payments for Account" always "confirmed"?

Is a payment returned through horizon api call: "Payments for Account" always "confirmed"? In comparison to Ripple a transaction could be returned but not validated yet. Is Horizon filtering this out ...
CryptoDev's user avatar
2 votes
1 answer
68 views

How the transaction history of an account including the amounts sent/received in the transaction be viewed using horizon?

By checking transactions using something like: https://horizon-testnet.stellar.org/accounts/GBMTGMQXBXZS5XJROQQOZB7TU4ACBIXTJJEG7WTXP4ZEARPGQGDWHWIS/transactions?order=desc&limit=100 I get JSON ...
John Murphy's user avatar
5 votes
2 answers
248 views

Is there a library for stellar equivalent to web3js for Ethereum?

I am considering creating a stellar token or asset. I have done this before with ethereum but not with stellar. I would also like an app to be able to: Create a wallet for the user so that they can ...
John Murphy's user avatar
0 votes
3 answers
360 views

Muliti Signature with hash(x) in goLang SDK

I have a stellar account say "ACCOUNT1" with the following attributes: MasterWeight = 2 Threshold [ 1, 2, 3] Signers: Masterkey with weight 2 ed25519_public_key with weight 1 (say ACCOUNT2) ...
Malavan's user avatar
2 votes
2 answers
429 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 ...
Nitzan Tomer's user avatar
2 votes
2 answers
145 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 ...
Tyler Citrin's user avatar
2 votes
1 answer
275 views

How do I locally manage sequence no of an account?

I am trying to successfully send a transaction but its failing whats the purpose of these two functions 1 - StellarSdk.Operation.createAccount 2 - StellarSdk.Operation.payment if I am using an ...
f4r4's user avatar
  • 199
7 votes
1 answer
462 views

Why is the memo hash different from the one I specify during tx building?

I'm converting IPFS multi hash to hex, and after throwing away its prefix I want to attach that hash to a stellar transaction (something like here). I build it this way: let transaction = new ...
Maxim Gaina's user avatar
4 votes
1 answer
123 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 ...
Tyler Citrin's user avatar
0 votes
2 answers
231 views

Stellar Validators, Transaction fees, Inflation fees.

I've been trying to find some answer in regards to the following questions. Hope someone can help me. Because I was able to find the only unnecessary answer in regards to my questions; Why would ...
Ali's user avatar
  • 1
4 votes
2 answers
104 views

Is it possible to retrieve last N transactions or all transactions since a given timestamp?

The dapp I'm building can not rely on the paging mechanism described here, since after a short amount of time I will have a lot of transactions for a given account. Retrieving them all to only select ...
Maxim Gaina's user avatar
2 votes
1 answer
60 views

Can I do a multi recipient transaction for a custom token?

I would like to know if it's possible to do a transaction with multiple recipient, in order to pay only once the fee. I saw in the documentation that you can put up to 100 operation in one ...
Sandoche's user avatar
  • 123
1 vote
3 answers
138 views

Freezing unauthorized tokens

Account A issued and transferred asset ABC to distributor account B Account A was locked account B was issued trust-lines from X, Y, Z to accept ABC tokens transferred ABC to X, Y ,Z X, Y, Z are bad ...
Cybercoinium's user avatar
2 votes
3 answers
3k views

How can I validate a Stellar address?

I am currently only checking if the address is 56 chars long an if it is alphanumeric. Is there a checksum in an address to verify it. Are there any other rules ?
Boris D. Teoharov's user avatar
2 votes
2 answers
386 views

Error in transaction creation

I am creating a transaction. When I am submitting the transaction to the blockchain it is giving an error. I will post the code below. Could anyone tell me where I am going wrong? from stellar_base....
merklexy's user avatar
2 votes
1 answer
117 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 ...
Linas's user avatar
  • 108
5 votes
3 answers
281 views

Is there a way to get a list of payments on account along with the transaction memo?

It seems the the transactions for account will give you back a memo, but no way to get the payments info such as the amount without making another API call on the individual payment for transaction. ...
aasatt's user avatar
  • 193
3 votes
1 answer
120 views

Stream stop get new data when finishing fetch all data and new payment was created

I using java-stellar-sdk version 0.2.0 from this: https://github.com/stellar/java-stellar-sdk/releases I did as tutorial example: @Override protected void onCreate(Bundle savedInstanceState) { ...
hungnv39's user avatar
4 votes
1 answer
122 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 ...
Sentient's user avatar
  • 143
2 votes
1 answer
336 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 ...
Klaus's user avatar
  • 193
2 votes
1 answer
81 views

How return a state after sumbit a transaction [JavaScript]

I've a dispatcher in node js called dis.js. in this dispatcher i want to call a function in makepayment.js and wait for the result of submit transaction. dis.js critical piece of code const mk = ...
AndreaBorio's user avatar
5 votes
3 answers
2k views

How to decode XDR of the result_xdr

So my code is: envelope = Te(tx=tx, opts={"network_id": "TESTNET"}) envelope.sign(receiving_account) xdr = envelope.xdr() response = horizon.submit(xdr) # TO DO: Have to check if done well print('...
Volatil3's user avatar
  • 215
5 votes
2 answers
113 views

Why are overspending transactions added to the ledger?

I always assumed that this could not make its way into the ledger, but while testing with (seemingly) invalid transactions, I created the following: A custom asset I created a custom asset. As you ...
chris_b's user avatar
  • 193
3 votes
1 answer
48 views

When A sends a signed transaction to B, is the data operation visible in the transaction ?

When A sends a signed transaction to B, is the data operation visible in the transaction ? Are the details of the transaction visible to B ? We are planning to put some key value pairs in the ...
George Vanica's user avatar