ContractAuth class Null safety

Represents a contract authorization.

See Soroban Documentation - Authorization soroban.stellar.org/docs/learn/authorization for more information.

Constructors

ContractAuth(AuthorizedInvocation rootInvocation, {List<XdrSCVal>? signatureArgs, Address? address, int? nonce})

Properties

address Address?
read / write
hashCode int
The hash code for this object.
read-only, inherited
nonce int?
read / write
rootInvocation AuthorizedInvocation
The root authorized invocation.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signatureArgs List<XdrSCVal>
The signature arguments.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
sign(KeyPair signer, Network network) → void
Signs the contract authorization.
toString() String
A string representation of this object.
inherited
toXdr() XdrContractAuth
Creates an XdrContractAuth from this.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromBase64EncodedXdr(String xdr) ContractAuth
Constructs a ContractAuth from base64 encoded xdr.
fromXdr(XdrContractAuth xdr) ContractAuth
Constructs a ContractAuth from xdr.
fromXdrList(List<XdrContractAuth> xdrAuth) List<ContractAuth>
Constructs a list of ContractAuth from a list of XdrContractAuth.
toXdrList(List<ContractAuth> auth) List<XdrContractAuth>
Creates a list of XdrContractAuth from a list of ContractAuth.