Transfers

Get a transfer by its ID.

get/v2/transfers/{transferId}

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

transferId, string required
Example:transfer_af2937b0-9846-4fe7-bfe9-ccc22d935114

The unique identifier of the transfer.

Response

Successfully got transfer.

Transfer required

A Transfer represents all the information needed to execute a transfer and tracks the lifecycle of a transfer from initiation through completion or failure.

transferId, string

The ID of the transfer. Required when validateOnly is false.

status, 'quoted' | 'processing' | 'completed' | 'failed'

The current status of the transfer, indicating what action you need to take next. Required when validateOnly is false.

source, union required

The source of the transfer.

target, union required

The target of the transfer.

sourceAmount, string

The amount of the source asset that will be transferred out, as a decimal string in standard unit denomination.

sourceAsset, string

The asset symbol of the source amount.

targetAmount, string

The amount of the target asset received, as a decimal string in standard unit denomination. May be omitted in the quoted state if the value cannot be guaranteed; see estimate.targetAmount for the expected value. Populated with the actual executed amount once the transfer completes.

targetAsset, string

The asset symbol of the target amount.

exchangeRate, TransferExchangeRate

Exchange rate information for currency conversion. The rate indicates how much of the target asset is equivalent to one unit of the source asset. May be omitted in the quoted state if the rate cannot be guaranteed; see estimate.exchangeRate for the expected rate. Populated with the actual executed rate once the transfer completes.

fees, TransferFee[]

The fees associated with this transfer. Different transfer types have different fee structures. May be omitted in the quoted state if the fees cannot be guaranteed; see estimate.fees for the expected fees. Populated with the actual fees once the transfer completes.

estimate, TransferEstimate

Captures estimated values for transfers where amounts can't be guaranteed (e.g., USDC -> EURC).

The values in estimate are not modified after a transfer is executed. They are preserved as an immutable record of the original pre-execution snapshot.

The actual executed values are populated in the transfer resource post-execution.

completedAt, string date-time

The date and time the transfer was completed.

failureReason, string

The reason for failure, if the transfer failed. Only present when status is failed.

failureDetails, TransferFailureDetails

Structured, machine-readable failure information. Always present when status is failed (a generic_failure code is used when no more specific code applies), and omitted otherwise. Prefer this over the free-text failureReason for programmatic error handling.

expiresAt, string date-time

The date and time when this transfer will expire if not executed. Only present for quoted status. A new transfer must be created to obtain an updated quote after expiration. Required when validateOnly is false.

executedAt, string date-time

The date and time the transfer was executed and moved to processing. Only present when status has progressed beyond quoted.

createdAt, string date-time

The date and time the transfer was created. Required when validateOnly is false.

updatedAt, string date-time

The date and time the transfer was last updated. Required when validateOnly is false.

metadata, Metadata

Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.

details, TransferDetails

Additional details about the transfer. For example, if the transfer was sent to a deposit destination, the information about that destination will be included in this field.

Example response

{
  "transferId": "transfer_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "status": "completed",
  "source": {
    "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
    "asset": "usd"
  },
  "target": {
    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "network": "base",
    "asset": "usdc"
  },
  "sourceAmount": "103.50",
  "sourceAsset": "usd",
  "targetAmount": "100.00",
  "targetAsset": "usdc",
  "completedAt": "2025-01-01T00:05:00Z",
  "createdAt": "2025-01-01T00:00:00Z",
  "updatedAt": "2025-01-01T00:05:00Z"
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new polygon enum value to the details/onchainTransactions/items/network response property for the response status

    3 more changes in this revision