GasPayment
Namespace: IotaSdk
Payment information for executing a transaction
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
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 of this type is specified in
bcs-schema.abnf.
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()
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
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.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()