Confirm Transfer (beta)
Confirm a transfer to withdraw from wallet. Each transfer expires within 2 minutes to avoid provide the best estimate in the network charge of the specified blockchain.
HTTP Request
POST /v1/transfers/{transfer_id}/confirm
Returns
A successful response returns a Transfer
object with updated status
and blockchain_tx
. We recommend that you check to make sure status is completed
. If status
is pending
, perform polling on GetTransfer
until status is completed or failed.
Path parameters
-
ID of the transfer to confirm
POST
/v1/transfers/{transfer_id}/confirm
curl \
-X POST https://api.streambird.io/v1/transfers/{transfer_id}/confirm \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"user_id":"user_26l6ha8syVN8oqmaHaFShTxZ5RC"}'
Request example
{
"user_id": "user_26l6ha8syVN8oqmaHaFShTxZ5RC"
}
Response examples (200)
{
"id": "transfer_2DHHNuneKLlqAr1ooaBb531mOy4",
"app_id": "app_25ldv51seNohTaYRsxdfoxMlAa2",
"user_id": "user_26l6ha8syVN8oqmaHaFShTxZ5RC",
"status": "completed",
"source": "wallet_2CxAACd2h0dwzSlsqqyFLsJXCxW",
"source_amount": "0.050005",
"dest": "5H6JCEqnLPjYsoGkBGPaxqrviYKbVrggB7MZTmE1euNA",
"dest_amount": "0.05",
"dest_currency": "SOL",
"source_currency": "SOL",
"custom_id": null,
"total_fees": "0.000005",
"notes": "test",
"blockchain_tx_hash": "5XaDKrbsCuYP1QyngWuidx4PvwjkPEBXox8Wqt9K8MHT7qTeZ3c6WbSWGkrKXPYvwtfcYuVaTJAVaqNZ8sDRHyHA",
"completed_at": 0,
"cancelled_at": 0,
"expires_at": 1660349172,
"created_at": 1660349052,
"updated_at": 1660349067
}