Skip to main content

Type Alias: GasPayment

type GasPayment = {
budget: bigint;
objects: ObjectReference[];
owner: AddressLike;
price: bigint;
};

Payment information for executing a transaction

BCS

The BCS serialized form for this type is defined by the following ABNF:

gas-payment = (vector object-reference) ; gas coin objects
address ; owner
u64 ; price
u64 ; budget

Properties

budget

budget: bigint;

Total budget willing to spend for the execution of a transaction


objects

objects: ObjectReference[];

owner

owner: AddressLike;

Owner of the gas objects, either the transaction sender or a sponsor


price

price: bigint;

Gas unit price to use when charging for computation

Must be greater-than-or-equal-to the network's current RGP (reference gas price)