authorizeEntry

suspend fun authorizeEntry(entry: String, signer: KeyPair, validUntilLedgerSeq: Long, network: Network, options: Auth.AuthOptions = AuthOptions()): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry (base64) using a KeyPair.

Return

Signed authorization entry

Parameters

entry

Base64-encoded unsigned Soroban authorization entry

signer

KeyPair to sign with

validUntilLedgerSeq

Exclusive future ledger sequence until which this is valid

network

Network for replay protection

options

Signing options; see AuthOptions

Throws

if the entry cannot be decoded, the signature is invalid, validUntilLedgerSeq differs from the expiration an existing signature commits to (see Auth), or the credential address or AuthOptions.forAddress is a muxed account (M...) or muxed contract (W...) address


suspend fun authorizeEntry(entry: SorobanAuthorizationEntryXdr, signer: KeyPair, validUntilLedgerSeq: Long, network: Network, options: Auth.AuthOptions = AuthOptions()): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry using a KeyPair.

Return

Signed authorization entry

Parameters

entry

Unsigned Soroban authorization entry

signer

KeyPair to sign with

validUntilLedgerSeq

Exclusive future ledger sequence until which this is valid

network

Network for replay protection

options

Signing options; see AuthOptions

Throws

if the signature is invalid, validUntilLedgerSeq differs from the expiration an existing signature commits to (see Auth), or the credential address or AuthOptions.forAddress is a muxed account (M...) or muxed contract (W...) address


suspend fun authorizeEntry(entry: String, signer: Auth.Signer, validUntilLedgerSeq: Long, network: Network, options: Auth.AuthOptions = AuthOptions()): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry (base64) using a custom Signer.

Return

Signed authorization entry

Parameters

entry

Base64-encoded unsigned Soroban authorization entry

signer

Custom signer

validUntilLedgerSeq

Exclusive future ledger sequence until which this is valid

network

Network for replay protection

options

Signing options; see AuthOptions

Throws

if the entry cannot be decoded, the signature is invalid, validUntilLedgerSeq differs from the expiration an existing signature commits to (see Auth), or the credential address or AuthOptions.forAddress is a muxed account (M...) or muxed contract (W...) address


suspend fun authorizeEntry(entry: SorobanAuthorizationEntryXdr, signer: Auth.Signer, validUntilLedgerSeq: Long, network: Network, options: Auth.AuthOptions = AuthOptions()): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry using a custom Signer.

Return

Signed authorization entry

Parameters

entry

Unsigned Soroban authorization entry

signer

Custom signer

validUntilLedgerSeq

Exclusive future ledger sequence until which this is valid

network

Network for replay protection

options

Signing options; see AuthOptions

Throws

if the signature is invalid, validUntilLedgerSeq differs from the expiration an existing signature commits to (see Auth), or the credential address or AuthOptions.forAddress is a muxed account (M...) or muxed contract (W...) address