Sum network_fee + rpc_fee + additional_fee into a single OS bigint.
network_fee + rpc_fee + additional_fee
bigint
The fee is read from the node's confirm response. Two shapes are handled:
gas_operation.fees
transaction.content.transaction_fee
gas_operation: null
Returns 0n when neither is present (fee not exposed at confirm time).
0n
Sum
network_fee + rpc_fee + additional_feeinto a single OSbigint.The fee is read from the node's confirm response. Two shapes are handled:
gas_operation.fees— the node's authoritative gas operation, when the node populates it (post-fork gas-separation model), preferred; elsetransaction.content.transaction_fee— the fee carried on the confirmed transaction itself, which live nodes return withgas_operation: null.Returns
0nwhen neither is present (fee not exposed at confirm time).