DelegatedSigner

data class DelegatedSigner(val address: String) : SmartAccountSigner

A delegated signer using a Soroban address with built-in require_auth verification.

Delegated signers are Stellar accounts (G-address) or smart contracts (C-address) that use the native Soroban authorization mechanism. The smart account will call require_auth_for_args() on the address to verify authorization.

Example:

// Account signer
val accountSigner = DelegatedSigner(address = "GA7QYNF7SOWQ...")

// Contract signer
val contractSigner = DelegatedSigner(address = "CBCD1234...")

Throws

if the address format is invalid

Constructors

Link copied to clipboard
constructor(address: String)

Properties

Link copied to clipboard

The Stellar address of the signer (G-address for accounts, C-address for contracts)

Link copied to clipboard
open override val uniqueKey: String

Unique identifier for deduplication.

Functions

Link copied to clipboard
open override fun toScVal(): SCValXdr

Converts the delegated signer to its on-chain representation.