Skip to main content

GasPayment

type GasPayment

Payment information for executing a transaction

BCS

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

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

type GasPayment struct {
Objects []ObjectReference
// Owner of the gas objects, either the transaction sender or a sponsor
Owner *Address
// Gas unit price to use when charging for computation
//
// Must be greater-than-or-equal-to the network's current RGP (reference
// gas price)
Price uint64
// Total budget willing to spend for the execution of a transaction
Budget uint64
}

func GasPaymentFromBcs

func GasPaymentFromBcs(bcs []byte) (GasPayment, error)

Create this type from BCS encoded bytes.

func GasPaymentFromJson

func GasPaymentFromJson(json string) (GasPayment, error)

Create this type from JSON encoded string.

func (*GasPayment) Destroy

func (r *GasPayment) Destroy()