initializeWallet
suspend fun initializeWallet(keyType: KeyType, signingPublicKey: String): <Error class: unknown class><Wallet>
Initializes a wallet in the Lightspark infrastructure and syncs it to the Bitcoin network. This is an asynchronous operation, the caller should then poll the wallet frequently (or subscribe to its modifications). When this process is over, the Wallet status will change to READY
(or FAILED
).
Return
The wallet that was initialized.
Parameters
keyType
The type of key to use for the wallet.
signingPublicKey
The base64-encoded public key to use for signing transactions.
Throws
if there is no valid authentication.