Create Wallet
Create a wallet for your brand-new customers.
URL
To instantiate a new wallet, use https://custody.arianee.com/{{client}}/{{chainType}}/wallet/create
.
POST - https://custody.arianee.com/{{client}}/{{chainType}}/wallet/create
Body
Field | Type | Required | Description |
---|---|---|---|
provider | String | โ | Your custodial provider. Today, supported providers are: - arianee-custodial - dfns |
{
"provider": "dfns"
}
Return Payload
Status Code | Success | Description |
---|---|---|
200 | true | Wallet is created, the address is returned.For dfns , walletId is also returned. |
{
"address": "0x52d8ad9b283b45e52fa6e0f3967b927e59508a9d",
"walletId": "wa-7n54f-hicck-83t8l7etk1f1mr42"
}
{
"address": "0xC8Dac970c21230b9e6633AD38FB4297800B93E77"
}
Errors
Status Code | Success | Description |
---|---|---|
400 | false | Provider is not supported. |
409 | false | The user already has a wallet. |
{
"name": "API Error",
"code": "CUSTODY_GATEWAY.WRONG_PROVIDER",
"description": "Wrong provider value : 'arianee-custodial' for this client ",
"httpCode": 400
}
{
"name": "API Error",
"code": "CUSTODY_GATEWAY.USER_ALREADY_HAVE_A_WALLET",
"description": "This user already have a wallet",
"httpCode": 409
}
Updated about 2 months ago