This mutation allows the user to create a onchain payment.
Sample mutation
mutation confirmCryptoPayment($invoiceId:UUID1!,$networkId:UUID1!,$txHash:String!){
confirmCryptoPayment(invoiceId:$invoiceId,networkId:$networkId,txHash:$txHash)
}
Sample variable
{
"invoiceId":"145a7456-2186-4b45-9b12-f1a281e0863a",
"networkId":"b260424b-bb37-4a3e-86d0-0866175e5e68",
"txHash":"0xb53234595df82250f0af9a2c814d3a8c67f01f6c585714382f32d986ef6d34a2"
}
Sample response
{
"data": {
"confirmCryptoPayment": true
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
invoiceId | UUID1 | The invoice ID. | YES |
networkId | UUID1 | The Network ID | YES |
txHash | String | The txhash of OnchainPayment | YES |
Fields
Type | Description |
---|---|
Boolean | Boolean Flag which returns the onchain payment status |