GasPayment
type GasPayment
Payment information for executing a transaction
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
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 a JSON encoded string.
func (*GasPayment) Destroy
func (r *GasPayment) Destroy()
func (GasPayment) ToBcs
func (_self GasPayment) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (GasPayment) ToDisplayString
func (_self GasPayment) ToDisplayString() string
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (GasPayment) ToJson
func (_self GasPayment) ToJson() (string, error)
Convert this type to a JSON encoded string.