Sep30SignatureResponse

data class Sep30SignatureResponse(val signature: String, val networkPassphrase: String)

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}")

Example JSON

{
"signature": "YpVelqPAKsYTP...",
"network_passphrase": "Test SDF Network ; September 2015"
}

See also

Constructors

Link copied to clipboard
constructor(signature: String, networkPassphrase: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The network passphrase the signature is valid for

Link copied to clipboard

The base64-encoded signature for the transaction