In this articleThis brief article will cover how to create deposit and withdrawal transactions to exchange accounts.
Prerequisites:
- Exchange account added.
- Transaction Governance rules:
- Withdrawal: the source must be Exchange Account.
- Deposit: The destination must allow the whitelisted address on the exchange.
Deposit to an exchange
Use the Create an outgoing request to send currency from a PROTECT address to a configured exchange. This is a deposit to an exchange and is used to fund an exchange. This flow is the same as any transfer to a whitelisted address.
- Look up the wallet/address ID of the address from which to transfer.
- Create an outgoing request with the ID from step 1. For example,
{
"fromWalletId": "1234",
"fromAddressId": "1234",
"amount": "10000",
"feeLimit": null,
"gasLimit": null,
"toWhitelistedAddressId": "731",
"comment": null,
"useUnconfirmedFunds": null,
"feePaidByReceiver": null,
"useAllFunds": false,
"feePayerId": null,
"transactionComment": null,
"externalRequestId": null,
"destinationAddressMemo": ""
}
- Sign for approval.
Withdraw from an Exchange
API Keys RequiredThe flow for withdrawal is slightly different as PROTECT must initiate transactions via API since the addresses are held at the exchange. This requires API keys for exchanges to be configured. Contact support for assistance with this.
- Look up the exchange account ID using the List exchange accountsendpoint.
- Look up the addressId of the address you wish to deposit to.
- Send a request to the Create an incoming request endpoint. See the following example:
{
"amount": "10000",
"fromExchangeId": "1",
"toAddressId": "1234",
"externalRequestId": null,
"comment": null
}
- Approve the request by signing for approval.