All Questions
1 question
4
votes
2
answers
2k
views
Is there a way to estimate the transaction size?
Currently to get the size of a transaction I have to do the following
const tx = new Transaction().add(...)
const { blockhash } = await connection.getLatestBlockhash();
tx.recentBlockhash = blockhash;
...