Blockchain Deposits
Use Apps.Deposit to forward blockchain deposit to virtual account.
Last updated
Use Apps.Deposit to forward blockchain deposit to virtual account.
Last updated
echo 'Create deposit account'
curl --location --request POST 'https://api.orangepill.cloud/v1/apps/deposit \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'idempotency-key: 27373fabc392933dffabb' \
--header 'Content-Type: application/json' \
--data-raw '{
"destination": {
"account": "6340be52dffbdb56217f6a7b"
},
"asset": "BTC",
"seal": {
"my_signature_field": "my_signature_value"
},
"data": {
"description": "Desposit account for John James"
}
}'{
"id": "639d2416cd7325b35f409452",
"source": {
"account": "634b56217f6a7b0be52dffbd",
"deposit_address": "bc1q7pna7w7462uruh8m54tcnzspva8xd98wmc546u",
"owner": "639675ab191e9023f356dfa6"
},
"destination": {
"account": "6340be52dffbdb56217f6a7b",
"owner": "639675ab191e9023f356dfa6"
},
"asset": "BTC",
"data": {
"description": "Desposit account for John James"
},
"owner": "639675ab191e9023f356dfa6",
"created_at": 1671242774572,
"status": "PENDING",
"error": null
}echo 'list deposits with status PENDING'
curl --location --request GET 'https://api.orangepill.cloud/v1/apps/deposit?query={"status":"PENDING"}' \
--header 'x-api-key: AXVubzpwQDU1dzByYM==' \
--header 'Content-Type: application/json'[{
"id": "639d2416cd7325b35f409452",
"source": {
"account": "634b56217f6a7b0be52dffbd",
"deposit_address": "bc1q7pna7w7462uruh8m54tcnzspva8xd98wmc546u",
"owner": "639675ab191e9023f356dfa6"
},
"destination": {
"account": "6340be52dffbdb56217f6a7b",
"owner": "639675ab191e9023f356dfa6"
},
"asset": "BTC",
"data": {
"description": "Desposit account for John James"
},
"owner": "639675ab191e9023f356dfa6",
"created_at": 1671242774572,
"status": "PENDING",
"error": null
}]