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
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signatureArgs List<XdrSCVal>
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
sign(KeyPair signer, Network network) → void
Sign the contract authorization, the signature will be added to the signatureArgs For custom accounts, this signature format may not be applicable. See Soroban Documentation - Stellar Account Signatures soroban.stellar.org/docs/how-to-guides/invoking-contracts-with-transactions#stellar-account-signatures
toString() String
A string representation of this object.
inherited
toXdr() XdrContractAuth

Operators

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

Static Methods

fromBase64EncodedXdr(String xdr) ContractAuth
fromXdr(XdrContractAuth xdr) ContractAuth
fromXdrList(List<XdrContractAuth> xdrAuth) List<ContractAuth>
toXdrList(List<ContractAuth> auth) List<XdrContractAuth>