DomainSigner

class DomainSigner(url: String, requestTransformer: HttpRequestBuilder.() -> Unit) : WalletSigner.DefaultSigner

Wallet signer that supports signing with a client domain using standard SigningData request and response type.

Constructors

Link copied to clipboard
fun DomainSigner(url: String, requestTransformer: HttpRequestBuilder.() -> Unit = {})

Create empty Json http signer

Types

Link copied to clipboard
@Serializable
data class SigningData(transaction: String, networkPassphrase: String)

Functions

Link copied to clipboard
open override fun signWithClientAccount(txn: Transaction, account: AccountKeyPair): Transaction
Link copied to clipboard
open suspend override fun signWithDomainAccount(transactionXDR: String, networkPassPhrase: String, account: AccountKeyPair): Transaction

Properties

Link copied to clipboard
val client: HttpClient
Link copied to clipboard
val requestTransformer: HttpRequestBuilder.() -> Unit

optional transformer of the default request. Can be used for authentication purposes, etc.

Link copied to clipboard
val url: String

url to which requests should be made