I am testing smart contracts in sandbox mode using python scripts.
I want to be able to store how much an operation cost. So for example when I get the output of a contract origination after baking a block (example below), I want to be able to store the value 26616000
:
This origination was successfully applied
Originated contracts:
KT1RjKjgFp19tV54bVUzui6XGyftJdqoUJwv
Storage size: 630 bytes
Paid storage size diff: 630 bytes
Consumed gas: 26616000
Balance updates:
tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.63
tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx ... -ꜩ0.257
I was hoping there might be a way to search for gas cost by using the operation hash or something like that? Or would there be other way I can store it?