Account Data Response
Represents an account data response from the Horizon API.
This response contains a single data entry (key-value pair) stored on an account. The value is base64-encoded and can be decoded to bytes or (if valid UTF-8) to a string.
Usage
val horizonServer = HorizonServer("https://horizon-testnet.stellar.org")
val dataResponse = horizonServer.accounts().accountData(accountId, "config")
// Get base64 value
println(dataResponse.value)
// Get decoded bytes
val bytes = dataResponse.decodedValue
// Get decoded string (throws if not valid UTF-8)
val string = dataResponse.decodedString
// Get decoded string or null (safe for binary data)
val stringOrNull = dataResponse.decodedStringOrNullContent copied to clipboard