Can an eWallet include multiple accounts?

Yes. An eWallet has an account for each of the currencies that it stores. If I were to deposit another currency to an eWallet, an additional account would be created for it. For example, an eWallet with 100 USD and 98 EUR has two separate accounts for each of the currencies in it.

Running a request for the eWallet’s account balances displays the following data on its accounts:

{ 
    "id": "f62ab5ef-b0a7-11eb-9403-124eb1b705c1", 
    "currency": "USD", 
    "alias": "USD", 
    "balance": 100, 
    "received_balance": 0, 
    "on_hold_balance": 0, 
    "reserve_balance": 0, 
    "limits": null, 
    "limit": null 
}, 
{ 
    "id": "064a28df-b0a8-11eb-9403-124eb1b705c1", 
    "currency": "EUR", 
    "alias": "EUR", 
    "balance": 98, 
    "received_balance": 0, 
    "on_hold_balance": 0, 
    "reserve_balance": 0, 
    "limits": null, 
    "limit": null 
} 

A deposit of 75 SGD to this eWallet creates another account for the SGD currency. Rerunning the request for this eWallet’s account balances displays the following data on its accounts:

    { 
        "id": "f62ab5ef-b0a7-11eb-9403-124eb1b705c1", 
        "currency": "USD", 
        "alias": "USD", 
        "balance": 100, 
        "received_balance": 0, 
        "on_hold_balance": 0, 
        "reserve_balance": 0, 
        "limits": null, 
        "limit": null 
    }, 
    { 
        "id": "064a28df-b0a8-11eb-9403-124eb1b705c1", 
        "currency": "EUR", 
        "alias": "EUR", 
        "balance": 98, 
        "received_balance": 0, 
        "on_hold_balance": 0, 
        "reserve_balance": 0, 
        "limits": null, 
        "limit": null 
    }, 
    { 
        "id": "ddf2f58a-b0a8-11eb-9403-124eb1b705c1", 
        "currency": "SGD", 
        "alias": "SGD", 
        "balance": 75, 
        "received_balance": 0, 
        "on_hold_balance": 0, 
        "reserve_balance": 0, 
        "limits": null, 
        "limit": null 
    } 

Note that a new account has been made for the additional currency in the eWallet, and that there is a unique ID for each currency account. See also Retrieve wallet balances.

2 Likes

Rapyd’s very own @Kyle put this video together around How to Create a Wallet. Pretty rad.

1 Like