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 or the signature is invalid


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


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 or the signature is invalid


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