Adding to the address book
By default, Coinbase Prime leverages an address book to prevent withdrawals to unknown or unauthorized destinations. New address entries can be submitted via Create Address Book Entry; however, each entry still requires consensus approval in the UI. If desired, the address book feature can be disabled in the UI for more streamlined workflows. When submitting an address book entry, provide:- A name for the address
- The address itself
- The asset (symbol) associated with that address
Creating a Crypto Withdrawal
Onchain crypto withdrawals to an allowlisted address are created via the Create Withdrawal endpoint. Specify the Wallet ID to withdraw from; for a refresher on obtaining Wallet IDs, see the Wallets page. Even though withdrawals can be created through the API, the default behavior requires UI approval to finalize the transaction. The API response will include:- A Transaction ID, which can be used to track the transaction
- An Activity ID specific to the consensus process in Prime
Tracking withdrawals
Use the Transaction ID returned by the Create Withdrawal endpoint to track the transaction’s status:- Get Transaction by ID: Retrieves detailed information for a single transaction.
- List Transactions: Can filter by
WITHDRAWAL
to list all withdrawal transactions.
STATUS
field in these responses indicates the current stage of withdrawal processing (e.g., pending approval, approved, completed).
Fiat withdrawals
The Create Withdrawal endpoint can also be used to withdraw fiat. Before doing so, link a bank account in the Prime UI. Once linked, retrieve the bank account’spayment_method_id
via the List Entity Payment Methods endpoint. This endpoint requires the entity ID, which can be found by following instructions in the Account Structure page.
Once the correct payment_method_id
is obtained, call Create Withdrawal again, specifying the fiat amount, the payment method, and the destination type DESTINATION_PAYMENT_METHOD
. For a straightforward example, see Create Withdrawal To Payment Method.
Please note: All requests discussed above require proper authentication. For more information, visit REST API Authentication.