Sep30Signature Response
Represents a SEP-30 transaction signature response.
Returned when requesting the recovery server to sign a transaction via the POST /accounts/<address>/sign/<signing-address> endpoint. Contains the base64-encoded signature and the network passphrase confirming which Stellar network the signature is valid for.
Usage
val json = Json.parseToJsonElement(responseBody).jsonObject
val response = Sep30SignatureResponse.fromJson(json)
println("Signature: ${response.signature}")
println("Network: ${response.networkPassphrase}")Content copied to clipboard
Example JSON
{
"signature": "YpVelqPAKsYTP...",
"network_passphrase": "Test SDF Network ; September 2015"
}Content copied to clipboard