DataForAccountResponse

public struct DataForAccountResponse : Decodable, Sendable

Represents a single data entry value from an account’s key-value data store.

Accounts can store arbitrary key-value pairs (up to 64 bytes per value). This response contains the value for a specific key requested via the Horizon API. Values are base64 encoded.

Data entries are used for storing metadata like:

  • Domain verification proofs
  • Off-chain data references
  • Application-specific configuration

See also:

  • Base64-encoded value for the requested key. Decode to access the raw bytes.

    Declaration

    Swift

    public var value: String
  • Account ID sponsoring this data entry’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) throws

    Parameters

    decoder

    The decoder containing the data