com.coinbase.cdp.resources.accounts
Constructor Details
AccountsClient
clientOptions - ClientOptions
Method Details
withRawResponse
listAccounts
Overload 1
request - ListAccountsRequest
Returns:
ListAccountsResponse
Overload 3
requestOptions - RequestOptions
Returns:
ListAccountsResponse
Overload 4
request - ListAccountsRequest
requestOptions - RequestOptions
Returns:
ListAccountsResponse
createAccount
Overload 1
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
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
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
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
accountId - AccountId
Returns:
Account
Overload 2
accountId - AccountId
request - GetAccountByIdRequest
Returns:
Account
Overload 3
accountId - AccountId
requestOptions - RequestOptions
Returns:
Account
Overload 4
accountId - AccountId
request - GetAccountByIdRequest
requestOptions - RequestOptions
Returns:
Account
listBalances
Overload 1
accountId - AccountId
Returns:
ListBalancesResponse
Overload 2
accountId - AccountId
request - ListBalancesRequest
Returns:
ListBalancesResponse
Overload 3
accountId - AccountId
requestOptions - RequestOptions
Returns:
ListBalancesResponse
Overload 4
accountId - AccountId
request - ListBalancesRequest
requestOptions - RequestOptions
Returns:
ListBalancesResponse
getBalanceByAsset
Overload 1
accountId - AccountId
asset - Asset
Returns:
Balance
Overload 2
accountId - AccountId
asset - Asset
request - GetBalanceByAssetRequest
Returns:
Balance
Overload 3
accountId - AccountId
asset - Asset
requestOptions - RequestOptions
Returns:
Balance
Overload 4
accountId - AccountId
asset - Asset
request - GetBalanceByAssetRequest
requestOptions - RequestOptions
Returns:
Balance