Add Account
This API allows you to add accounts to existing vaults.
API endpoint: POST - /api/v1/vaults/accounts
Key | Value | Description |
---|---|---|
entity_id | string | Unique identifier for the entity for which you are adding the account |
currency_code | string | Currency for which account needs to be created. (USD, USDC_ETH, USDT_ETH, USDC_SOL etc.) |
name | string | Account name |
Here is an example request body:
{
"entity_id":"iihr42_XgwZ2aytTpbaCGxwYfSSVo_04_27",
"currency_code":"USDT_ETH",
"name": "My USDT Account"
}
Success response code: 201 (created)
Key | Value | Description |
---|---|---|
id | string | Unique ID of the account |
currency_code | string | Currency code of the account |
status | string | Status of the account (e.g. "pending", "active") |
account_number | string | Account number of the account generated |
Example response body:
{
"data": {
"id": "roma_snKJBJKBADKB7BJ_07_09",
"currency_code": "USDC_ETH",
"status": "active",
"account_number":"0xBF0E1204a2F9C4ad6CabbC9130f2D74A68C2DefB"
}
}