Create a wallet
How to create a new blockchain wallet.
Request Endpoint: reference
POST /api/wallets
Parameter | Param Type | Value | Description | Example Value |
---|---|---|---|---|
Signing-Method | Header | id:value | id : This is the ID of the signing methodvalue : This is the value of the signing method | 756ae7a7-3713-43ee-9936-0dff50306488:123456 |
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
secretType | Body | The blockchain on which to create the wallet | String | ✅ |
userId | Body | The ID of the user who you want to link this wallet to | String | ❌ |
pincode (Deprecated) | Body | The pin that will encrypt and decrypt the wallet | String | ❌ |
Request Body:
{
"secretType": "MATIC",
"userId": "6a5a9020-e969-4d9a-ae4b-fcd91a75769d"
}
Response Body:
The wallet has been created an linked to the specified user (
userId
).
{
"success": true,
"result": {
"id": "10f26e75-1f01-4c46-a2c1-551f886c6db6",
"address": "0x1bC722F33E62019F1d9CBcc43531c81731023483",
"walletType": "API_WALLET",
"secretType": "MATIC",
"createdAt": "2023-12-06T12:17:36.420854289",
"archived": false,
"description": "Self-driven Zebra",
"primary": false,
"hasCustomPin": false,
"userId": "6a5a9020-e969-4d9a-ae4b-fcd91a75769d",
"custodial": false,
"balance": {
"available": true,
"secretType": "MATIC",
"balance": 0,
"gasBalance": 0,
"symbol": "MATIC",
"gasSymbol": "MATIC",
"rawBalance": "0",
"rawGasBalance": "0",
"decimals": 18
}
}
}
Updated 30 days ago