GasPayment
GasPayment
struct GasPayment
Payment information for executing a transaction
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
init(objects:owner:price:budget:)
init(objects: [ObjectReference], owner: Address, price: UInt64, budget: UInt64)
budget
var budget: UInt64
Total budget willing to spend for the execution of a transaction
objects
var objects: [ObjectReference]
owner
var owner: Address
Owner of the gas objects, either the transaction sender or a sponsor
price
var price: UInt64
Gas unit price to use when charging for computation
Must be greater-than-or-equal-to the network's current RGP (reference gas price)
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func 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.
toJson()
func toJson() throws -> String
Convert this type to a JSON encoded string.