Coinbase.API.Accounts

Source

Summary

create(coinbase, name, optionals \\ %{})

Create an account (supports multisig)

create_address(coinbase, account_id, optionals \\ %{})

Create a new bitcoin address for an account

delete(coinbase, id)

Delete an account (only non-primary accounts with zero balance)

get(coinbase, id)

Gets an account

get_address(coinbase, id)

Get an accounts bitcoin address

get_balance(coinbase, id)

Get an account’s balance

list(coinbase, optionals \\ %{})

Gets a list of accounts

set_primary(coinbase, id)

Set account as primary

update(coinbase, id, account)

Updates a account

Functions

create(coinbase, name, optionals \\ %{})

Specs:

Create an account (supports multisig)

Optional params: account[type] (string): Type of account. If creating a HDM (multisig) account, specify multisig. account[m] (string): Number of required signatures to spend from HDM multisig account. account[xpubkeys] (array): Array of extended public keys of BIP32 wallets. Length of array must be greater or equal than ‘m’ to create a complete account.

Source
create_address(coinbase, account_id, optionals \\ %{})

Specs:

Create a new bitcoin address for an account

Source
delete(coinbase, id)

Specs:

Delete an account (only non-primary accounts with zero balance)

Source
get(coinbase, id)

Specs:

Gets an account

Source
get_address(coinbase, id)

Specs:

Get an accounts bitcoin address

Source
get_balance(coinbase, id)

Specs:

Get an account’s balance

Source
list(coinbase, optionals \\ %{})

Specs:

Gets a list of accounts

Optional params: page (integer): Can be used to page through results. Default value is 1. limit (integer): Number of records to return. Maximum is 1000. Default value is 25. all_accounts (integer): Set this to true to also list inactive accounts.

Source
set_primary(coinbase, id)

Specs:

Set account as primary

Source
update(coinbase, id, account)

Specs:

Updates a account

Source