Coinbase Prime API
cURL
curl --request POST \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/transfers \ --header 'Content-Type: application/json' \ --data '{ "amount": "<string>", "destination": "<string>", "idempotency_key": "<string>", "currency_symbol": "<string>" }'
{ "activity_id": "<string>", "approval_url": "<string>", "symbol": "<string>", "amount": "<string>", "fee": "<string>", "destination_address": "<string>", "destination_type": "<string>", "source_address": "<string>", "source_type": "<string>", "transaction_id": "<string>" }
Create a wallet transfer.
TransactionsService transactionsService = PrimeServiceFactory.createTransactionsService(client); CreateTransferRequest request = new CreateTransferRequest.Builder() .portfolioId("PORTFOLIO_ID_HERE") .walletId("WALLET_ID_HERE") .amount("0.001") .destination("DESTINATION_WALLET_UUID") .idempotencyKey(UUID.randomUUID().toString()) .currencySymbol("ETH") .build(); CreateTransferResponse response = transactionsService.createTransfer(request);
The portfolio ID
The wallet ID that the transfer will originate from
A successful response.
The response is of type object.
object
Was this page helpful?