1

Recently Cardano has come under heavy load. The consequences have been that some of our transactions which appear to have submitted successfully to the blockchain do not actually end up on the blockchain. By 'appear to' I mean we submit a transaction using the cardano-wallet api which returns a successful response.

For example:

  r = requests.post(f'http://{app.config["WALLET_API_URL"]}/v2/wallets/{app.config["WALLET_ID"]}/transactions', json=outbound_tx.body)

Now, sometimes when we manually follow up on these tx ids it turns out they never show up in cardano explorer. More directly, they never appear on chain. This never happened before the recent congestion so we assume some transactions are being dropped by the chain.

What is the best practice for following up on submitted transactions to ensure they have, in fact, posted to the chain?

1 Answer 1

1

The default TTL for transactions submitted via cardano-wallet is 7200 slots, or 2 hours. You can increase this by adding a --ttl <INTEGER> flag when you create the transaction on cardano-wallet. The best way to check if the transaction was included on-chain is to then check back on chain after the selected time has elapsed to see if it was included in a block. It shouldn't be too hard to automate this process either.

I expanded a bit in this post.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.