Skip to main content

GasPayment

data class GasPayment(var objects: List<ObjectReference>, var owner: Address, var price: ULong, var budget: ULong) : Disposable

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

Constructors

GasPaymentconstructor(objects: List<ObjectReference>, owner: Address, price: ULong, budget: ULong)

Properties

NameSummary
budgetvar budget: ULong
Total budget willing to spend for the execution of a transaction
objectsvar objects: List<ObjectReference>
ownervar owner: Address
Owner of the gas objects, either the transaction sender or a sponsor
pricevar price: ULong
Gas unit price to use when charging for computation

Functions

NameSummary
destroyopen override fun destroy()