OZExternalSignerInfo
public struct OZExternalSignerInfo : Sendable, Codable, Equatable, Hashable
Information about a managed external signer.
Represents either a keypair-based signer (in-memory Ed25519 key) or a
wallet-based signer (external wallet connection). Returned by
getAll() and get(address:)
to report signer details.
Example:
let signers = await kit.externalSigners.getAll()
for signer in signers {
print("\(signer.address) (\(signer.type))")
if signer.type == .wallet {
print(" Wallet: \(signer.walletName ?? "unknown")")
}
}
-
The Stellar G-address of the signer.
Declaration
Swift
public let address: String -
Whether this signer is a keypair or wallet.
Declaration
Swift
public let type: OZExternalSignerType -
Declaration
Swift
public let walletName: String? -
Declaration
Swift
public let walletId: String? -
Initializes a new
OZExternalSignerInfo.Declaration
Swift
public init( address: String, type: OZExternalSignerType, walletName: String? = nil, walletId: String? = nil )Parameters
addressThe Stellar G-address of the signer.
typeWhether this signer is a keypair or wallet.
walletNameOptional human-readable wallet name (wallet signers only).
walletIdOptional wallet identifier (wallet signers only).
View on GitHub
Install in Dash