Skip to main content
GET
/
v1
/
portfolios
/
{portfolio_id}
/
wallets
/
{wallet_id}
/
deposit_instructions
Get Wallet Deposit Instructions
curl --request GET \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions
import requests

url = "https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/deposit_instructions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "crypto_instructions": {
    "id": "e84255eb-2e21-439e-a1d0-f5dd1e1292b9",
    "name": "Wallet 1",
    "address": "ca13fdc4-e459-4fd9-868e-82291343b213",
    "account_identifier": "387879289",
    "account_identifier_name": "memo",
    "network": {
      "id": "<string>",
      "type": "<string>"
    }
  },
  "fiat_instructions": {
    "id": "<string>",
    "name": "<string>",
    "account_number": "<string>",
    "routing_number": "<string>",
    "reference_code": "<string>"
  }
}
Use the Prime SDK or CLI to test this endpoint by following the quickstart guide and running with the following examples
WalletsService walletsService = PrimeServiceFactory.createWalletsService(client);

GetWalletDepositInstructionsRequest request = new GetWalletDepositInstructionsRequest.Builder()
    .portfolioId("PORTFOLIO_ID_HERE")
    .walletId("WALLET_ID_HERE")
    .depositType(DepositType.CRYPTO)
    .build();

GetWalletDepositInstructionsResponse response = walletsService.getWalletDepositInstructions(request);
For more information, please visit the Prime Java SDK.

Path Parameters

portfolio_id
string
required

The portfolio ID

wallet_id
string
required

The wallet ID

Query Parameters

deposit_type
enum<string>
required

The deposit type

  • UNKNOWN_WALLET_DEPOSIT_TYPE: nil value
  • CRYPTO: A cryptocurrency deposit
  • WIRE: A wire deposit
  • SEN: DEPRECATED. A Silvergate Exchange Network deposit
  • SWIFT: A SWIFT deposit
  • SEPA: A SEPA deposit (Single Euro Payments Area)
Available options:
CRYPTO,
WIRE,
SEN,
SWIFT,
SEPA
network.id
string

The name of the network

The network id: base, bitcoin, ethereum, solana etc

network.type
string

The network type

The network type: mainnet, testnet, etc

Response

200 - application/json

A successful response.

crypto_instructions
object
fiat_instructions
object