send Payment
suspend fun sendPayment(recipientAddress: <ERROR CLASS>, payment: <ERROR CLASS>, when: Long = Clock.System.now().toEpochMilliseconds()): <ERROR CLASS>
Content copied to clipboard
Sends a MobileCoin payment to the user identified by the recipientAddress.
Parameters
recipientAddress
The user that will receive the payment.
payment
The payment to make.
when
The timestamp of the payment. Defaults to the current system clock time.
Throws
RequestFailedException
if signald sends an error response or the incoming message is invalid
SignaldException
if the request to the socket fails
fun sendPayment(recipientAddress: JsonAddress, payment: Payment, when: Long = Clock.System.now().toEpochMilliseconds()): SendResponse
Content copied to clipboard
Sends a MobileCoin payment to the user identified by the recipientAddress.
Parameters
recipientAddress
The user that will receive the payment.
payment
The payment to make.
when
The timestamp of the payment. Defaults to the current system clock time.
Throws
org.inthewaves.kotlinsignald.clientprotocol.RequestFailedException
if signald sends an error response or the incoming message is invalid
org.inthewaves.kotlinsignald.clientprotocol.SignaldException
if the request to the socket fails