Accounts
Accounts are at the heart of the Layer2 platform. They are the core book of record for a customers financial transactions and are backed by a complex set of double-entry ledgers. An account has to belong to a customer and its behaviour is determined by a combination of the Product and Asset Types.
We have 3 types of accounts : Fiat Deposit, Crypto Deposit and Crypto Payment. Click here to learn more about the various product types, supported assets, and operations.
A single account can only hold a single asset (e.g. ETH, USDC-ETH, BTC, USD). Today we support various fiat and crypto currencies.
Fiat deposit accounts
Opening accounts
To open fiat deposit accounts, you will need to use the accounts/deposits
endpoint and pass in one of the fiat product types and asset ids.
Get account info and balance
To get information on the account, including total and available balance, you will need to use the accounts/deposits/{account_id}
endpoint.
Available balance refers to the funds available to withdraw, exchange, transfer. It is net of any pending or authorized transactions. Total balance refers to all the funds in the account, including any pending and authorized transactions.
Get transactions
To get the list of transactions that have occured on this account, you will need to use the accounts/deposits/{account_id}/transactions
endpoint. You can filter the transactions by start date, end date and a # of other query parameters.
If you know the id of a specific transaction, you can retrieve it by using the accounts/deposits/{account_id}/transactions/{transaction_id}
endpoint
Get list of all accounts
To get the full list of accounts, either for all customers or a specific customer, use the accounts/deposits
endpoint.
Crypto deposit accounts
Opening accounts
To open crypto deposit accounts, you will need to use the accounts/deposits
endpoint and pass in one of the crypto product types and asset ids.
Get account info and balance
To get information on the account, including total and available balance, you will need to use the accounts/deposits/{account_id}
endpoint
Available balance refers to the funds available to withdraw, exchange, transfer. It is net of any pending or authorized transactions. Total balance refers to all the funds in the account, including any pending and authorized transactions.
Get transactions
To get the list of transactions that have occured on this account, you will need to use the accounts/deposits/{account_id}/transactions
endpoint. You can filter the transactions by start date, end date and a # of other query parameters.
If you know the id of a specific transaction, you can retrieve it by using the accounts/deposits/{account_id}/transactions/{transaction_id}
endpoint
Get list of all accounts
To get the full list of accounts, either for all customers or a specific customer, use the accounts/deposits
endpoint.
Crypto payment gateway accounts
Opening accounts
The crypto payment gateway accounts are opened a bit differently than the crypto/fiat deposit accounts.
To open crypto payment accounts, you will need to use the accounts/payments
endpoint.
Get account info and balance
To get information on the account, including total and available balance, you will need to use the accounts/payments/{account_id}
endpoint
Available balance refers to the funds available to withdraw, exchange, transfer. It is net of any pending or authorized transactions. Total balance refers to all the funds in the account, including any pending and authorized transactions.
Get transactions
To get the list of transactions that have occured on this account, you will need to use the accounts/payments/{account_id}/transactions
endpoint. You can filter the transactions by start date, end date and a # of other query parameters.
If you know the id of a specific transaction, you can retrieve it by using the accounts/deposits/{account_id}/transactions/{transaction_id}
endpoint.
Get list of all accounts
To get the full list of accounts, either for all customers or a specific customer, use the accounts/payments
endpoint.