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 of this type is specified in bcs-schema.abnf.

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()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.