GasPayment
Namespace: IotaSdk
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
public record class GasPayment : System.IDisposable, System.IEquatable`1[[IotaSdk.GasPayment, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → GasPayment
Implements IDisposable, IEquatable<GasPayment>
Attributes NullableContextAttribute, NullableAttribute
Properties
Objects
public ObjectReference[] Objects { get; init; }
Property Value
Owner
Owner of the gas objects, either the transaction sender or a sponsor
public Address Owner { get; init; }
Property Value
Price
Gas unit price to use when charging for computation
Must be greater-than-or-equal-to the network's current RGP (reference gas price)
public ulong Price { get; init; }
Property Value
Budget
Total budget willing to spend for the execution of a transaction
public ulong Budget { get; init; }
Property Value
Constructors
GasPayment(ObjectReference[], Address, UInt64, UInt64)
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
public GasPayment(ObjectReference[] Objects, Address Owner, ulong Price, ulong Budget)
Parameters
Objects ObjectReference[]
Owner Address
Owner of the gas objects, either the transaction sender or a sponsor
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)
Budget UInt64
Total budget willing to spend for the execution of a transaction
Methods
Dispose()
public void Dispose()