AccountSignerResponse
public struct AccountSignerResponse : Decodable, Sendable
Represents an account signer with its key, type, and signing weight.
Stellar accounts can have multiple signers for implementing multi-signature authorization. Each signer has a weight that contributes to meeting operation threshold requirements.
Common signer types:
- ed25519_public_key: Standard Stellar account public key
- sha256_hash: Hash of a preimage (for hash-locked transactions)
- preauth_tx: Hash of a pre-authorized transaction
See also:
- Stellar developer docs
- AccountThresholdsResponse for threshold requirements
-
Signature weight of this signer. Range: 0-255. Combined with other signers to meet thresholds.
Declaration
Swift
public var weight: Int -
Signer key, format depends on the type (public key, hash, or preauth transaction hash).
Declaration
Swift
public var key: String -
Type of signer key: “ed25519_public_key”, “sha256_hash”, or “preauth_tx”.
Declaration
Swift
public var type: String -
Account ID sponsoring this signer’s base reserve. Nil if not sponsored.
Declaration
Swift
public var sponsor: String? -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash