Skip to main content
Package: com.coinbase.cdp.resources.accounts

Constructor Details

AccountsClient

Parameters: clientOptions - ClientOptions

Method Details

withRawResponse

Get responses with HTTP metadata like headers Returns: RawAccountsClient

listAccounts

Overload 1
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Returns: ListAccountsResponse Overload 2
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Parameters: request - ListAccountsRequest Returns: ListAccountsResponse Overload 3
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Parameters: requestOptions - RequestOptions Returns: ListAccountsResponse Overload 4
List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first). Parameters: request - ListAccountsRequest requestOptions - RequestOptions Returns: ListAccountsResponse

createAccount

Overload 1
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Returns: Account Overload 2
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Parameters: request - CreateAccountRequest Returns: Account Overload 3
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Parameters: requestOptions - RequestOptions Returns: Account Overload 4
Create an account. Two ownership modes are supported: Entity-owned: when owner is omitted, the account is owned by the Entity making the request. Returns an account with owner: entity_<uuid>. Customer-owned: pass a Customer ID as owner (e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114). The Customer must have the custodyCrypto, custodyFiat, and custodyStablecoin capabilities enabled, otherwise the request is rejected with customer_not_authorized (HTTP 403). Parameters: request - CreateAccountRequest requestOptions - RequestOptions Returns: Account

getAccountById

Overload 1
Get an account by its ID. Parameters: accountId - AccountId Returns: Account Overload 2
Get an account by its ID. Parameters: accountId - AccountId request - GetAccountByIdRequest Returns: Account Overload 3
Get an account by its ID. Parameters: accountId - AccountId requestOptions - RequestOptions Returns: Account Overload 4
Get an account by its ID. Parameters: accountId - AccountId request - GetAccountByIdRequest requestOptions - RequestOptions Returns: Account

listBalances

Overload 1
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId Returns: ListBalancesResponse Overload 2
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId request - ListBalancesRequest Returns: ListBalancesResponse Overload 3
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId requestOptions - RequestOptions Returns: ListBalancesResponse Overload 4
List the balances for an account. Results are sorted by native-fiat equivalent balance in descending order. Parameters: accountId - AccountId request - ListBalancesRequest requestOptions - RequestOptions Returns: ListBalancesResponse

getBalanceByAsset

Overload 1
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset Returns: Balance Overload 2
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset request - GetBalanceByAssetRequest Returns: Balance Overload 3
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset requestOptions - RequestOptions Returns: Balance Overload 4
Get the balance for an account by asset. Parameters: accountId - AccountId asset - Asset request - GetBalanceByAssetRequest requestOptions - RequestOptions Returns: Balance