0

How do I determine the encoded size of an operation for the purpose of determining the minimal fee?

I'm trying to write a wallet, and I have access to tezos-node RPC. I'm able to forge and sign operations, but the number of bytes I see on my side for the signed operations doesn't seem to match the number the bakers are calculating. I'm inferring this by trying to run operations of various sizes with various fees, and yes I am also taking the gas constraint into account.

It says here the minimal nanotez per encoded byte is 1000. Here you can see the constraint being enforced, causing transactions that underpay to be ignored. Here is where the size of a transaction is calculated by the baker. I wish I could directly access that function!

Thanks!

Your Answer

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

Browse other questions tagged or ask your own question.