Sub Wallets
You can create and issue sub wallets to your users in any supported currency. However, you must create a main wallet in that currency first.
Create Sub Wallet
To get started, simply submit the currency of the sub wallet you want to create.
curl --request POST \
--url https://api.oneliquidity.technology/wallets/v1/sub \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{"currency":"BTC"}'
Our ok response will include the wallet ID, currency and an array of address & network objects associated with the wallet.
{
"message": "Ok",
"data": {
"walletId": "41c04132-f7b5-5e99-b0cf-abd4d00deabc",
"addresses": [
{
"network": "bitcoin",
"address": "2NFHU2dHxGGG9bXaD13Wmxevt24rky6bQku"
}
],
"currency": "BTC"
}
}
API Reference ➡️
Get Sub Wallets
To get sub wallets, you can pass an optional currency as a query parameter to get all sub wallets for a currency. Otherwise, you will get all sub wallets you have created. Include optional lek & limit query parameters for pagination.
curl --request GET \
--url https://api.oneliquidity.technology/wallets/v1/sub \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}'
Our ok response will include details about all your sub wallets including the addresses and their network.
{
"message": "Ok",
"data": [
{
"walletId": "e8e78f14-9a8e-5548-bd6f-b666e5acc9f4",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-09-01T11:58:33.758Z",
"createdAt": "2022-09-01T11:58:33.758Z",
"addresses": [
{
"network": "bep20",
"address": "0xF32c57cBe094aaF25B3bFBab9CC82999fDB0d898"
}
]
},
{
"walletId": "67e72700-8870-5b59-9218-f7bf26eca218",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-08-20T22:40:32.537Z",
"createdAt": "2022-08-20T22:40:32.537Z",
"addresses": [
{
"network": "bep20",
"address": "0xA9CE22bD2f86091BB2912dAdc9D7ecCD46b2226E"
}
]
},
{
"walletId": "e464632d-30d9-55cc-a505-939945ef1b28",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-09-01T11:03:49.869Z",
"createdAt": "2022-09-01T11:03:49.869Z",
"addresses": [
{
"network": "bep20",
"address": "0xa5c2831DD378e1aA7292fB1617d20631d9Ca9C4E"
}
]
},
{
"walletId": "5473adf4-50d2-5f9d-b9d4-6674929c9608",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-09-01T11:58:39.193Z",
"createdAt": "2022-09-01T11:58:39.193Z",
"addresses": [
{
"network": "bep20",
"address": "0x2701FE959A68b95817959d4b6D057d17DCF67841"
}
]
},
{
"walletId": "a12fc282-b6e3-58c7-aca6-55b3d7f7fd3c",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-08-31T21:35:33.122Z",
"createdAt": "2022-08-31T21:35:33.122Z",
"addresses": [
{
"network": "bep20",
"address": "0x9D8D18326477237F6a5FB56073eba131811322cB"
}
]
},
{
"walletId": "13abcc66-e498-5d91-a022-6e9a9dbce95a",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-09-04T20:47:46.082Z",
"createdAt": "2022-09-04T20:47:46.082Z",
"addresses": [
{
"network": "bep20",
"address": "0x201C716f5fD942E2701B3AaaaA72F2D4077215Fe"
}
]
},
{
"walletId": "1cd7b899-4bac-5bdd-a614-76499d4385a3",
"integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
"currency": "USDT",
"updatedAt": "2022-08-20T22:33:30.785Z",
"createdAt": "2022-08-20T22:33:30.785Z",
"addresses": [
{
"network": "bep20",
"address": "0xFeB736E3B59bC1E5d1FA36eDEdC40d2EE8046583"
}
]
}
]
}
API Reference ➡️
Updated over 2 years ago