authorize Invocation
Builds and signs a new authorization entry from scratch using a KeyPair.
Return
Signed authorization entry
Parameters
KeyPair to sign with
Exclusive future ledger sequence until which this is valid
Invocation tree being authorized (typically from simulation)
Network for replay protection
When true (the default), creates ADDRESS_V2 credentials. Pass false for the legacy ADDRESS arm, required on networks below Protocol 27, where ADDRESS_V2 entries invalidate the transaction.
Builds and signs a new authorization entry from scratch using a custom Signer.
Return
Signed authorization entry
Parameters
Custom signer
Public identity of the signer (G... address)
Exclusive future ledger sequence until which this is valid
Invocation tree being authorized (typically from simulation)
Network for replay protection
When true (the default), creates ADDRESS_V2 credentials. Pass false for the legacy ADDRESS arm, required on networks below Protocol 27, where ADDRESS_V2 entries invalidate the transaction.
Throws
if publicKey is a muxed account (M...) or muxed contract (W...) address