Skip to main content
6 votes
Accepted

Why do stellar transactions require a sequence number?

The sequence number is basically what we call a "nonce": a number used once. When you want to validate a transaction, it is part of the transaction that you sign. Then it is incremented when the ...
Mister Ticot's user avatar
5 votes
Accepted

Channel concept in stellar

You need to understand how transaction sequence numbers first. Every transaction has a source account, which pays for the operations contained inside it. To stop replay attacks, every transaction ...
Johan Stén's user avatar
  • 1,947
4 votes
Accepted

What is "Bump Sequence"?

As far as I can understand it from the feature description, it has nothing to do with the lightning network. The only effect from the mentioned operation is a bump (increment) of the account sequence ...
Orbit Lens's user avatar
  • 6,886
3 votes

For 'txBadSeq', when is tx_fee charged?

When you use a Horizon server to submit a transaction, it preforms some basic checks of the transaction integrity before sending it over to Stellar core. For example, it checks if all mandatory fields ...
Orbit Lens's user avatar
  • 6,886
3 votes
Accepted

How to get the sequence number for an account id?

Try this: var StellarSdk = require('stellar-sdk'); var server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); server.loadAccount("...
cesarm's user avatar
  • 1,527
3 votes

How to determine sequence no for pre-authorised transaction with time bound validity without blocking other new possible transactions

The pre-signed transaction will be invalidated if someone submits a transaction against the same account. This is possible because the account is not locked and therefore someone with the secret key ...
nikhils's user avatar
  • 1,080
3 votes
Accepted

How do I locally manage sequence no of an account?

createAccount is an operation that you can include in a transaction. It works like a payment from your account to the account specified in the operation. But it has a side-effect of creating the ...
Synesso's user avatar
  • 3,367
3 votes
Accepted

Does Stellar Laboratory query the DB, when it tries to get the Sequence Number?

Stellar Laboratory interacts with Horizon. It sends a request to /accounts/{account} endpoint to retrieve account details (sequence number in this case). Horizon exposes an API layer for interaction ...
Orbit Lens's user avatar
  • 6,886
3 votes
Accepted

Why doesn't bump sequence affect the sequence number of the transaction it's included in?

There are two different concepts here. The first is the sequence number of a transaction. To be valid, this must always be one greater than the current sequence number of the account. It doesn't ...
ire_and_curses's user avatar
2 votes
Accepted

What is cause of the spike in tx_bad_seq ? Presumably overloaded stellar network

From the blog post: Surge pricing on Stellar: FAQ Over the past few days, a lot of Stellar users have had trouble submitting transactions due to an increase in network activity. Ledgers that ...
ire_and_curses's user avatar
2 votes
Accepted

Not able to sign the transaction

tx_bad_seq error means that current source account sequence doesn't match the sequence specified in the transaction itself. Tx sequence should be equal to account sequence + 1 to pass the verification....
Orbit Lens's user avatar
  • 6,886
2 votes
Accepted

Can "Bump Sequence" potentially lock an account?

It is still possible to issue operations that affect that account, as the sequence number is consumed by the account issuing the transaction. You could use a second account to merge the max-id account....
Synesso's user avatar
  • 3,367
1 vote

Error tx_bad_seq, is it just about the sequence number?

Sequence number for a new transaction must be the current sequence number +1. You can look up the current sequence number at: https://horizon.stellar.org/accounts/[ACCOUNT_ID] Given the fact you ...
sui's user avatar
  • 2,534
1 vote
Accepted

Use case: how to accept only one payment for an item

If each product you are selling is unique (say, art objects), all of them can be treated as non-fungible tokens. Take a look at my write-up on different Stellar-based NFT approaches here. SDF has no ...
Orbit Lens's user avatar
  • 6,886
1 vote

Use case: how to accept only one payment for an item

Or just post the product as an offer, given you've created an asset for it. Whoever takes the offer takes the product. If one wants to let the buyers bid, let them submit offers and the seller will ...
J R's user avatar
  • 157
1 vote

Use case: how to accept only one payment for an item

Don't know a good solution without drawbacks but here are some more ideas: Publishing the sequence number alone wouldn't be sufficient since the seller would also have to sign the transaction if they ...
sui's user avatar
  • 2,534
1 vote
Accepted

Submitting many transactions in Node.js Error 400

The guide for Stellar Developers, sequenceNumbers was some what helpful. How do I get the currenct sequence number before a transaction submit? Look at the following line in the ample code you ...
Orbit Lens's user avatar
  • 6,886
1 vote

How to determine sequence no for pre-authorised transaction with time bound validity without blocking other new possible transactions

Correct, but keep in mind that pre-authorized transactions are not valid until a matching transaction is sent. That means that you could create a new transaction with the same sequence number as that ...
yulemata's user avatar
  • 312

Only top scored, non community-wiki answers of a minimum length are eligible