Create a wallet

How to create a new blockchain wallet.

Create blockchain wallets and link them to a specific user by userId. You need to specify the blockchain and the userId in the request body. You also need to provide a valid signing method for the user in the header request.

Request Endpoint: reference

HTTP

POST /api/wallets
Parameter
Param Type
Value
Description
Example Value

Signing-Method

Header

id:value

id: This is the ID of the signing method value: 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

❌

identifier

Body

Add a custom identifier to group wallets or add a unique external ID. This makes searching for wallets easier.

String

❌

description

Body

A description to describe the wallet

String

❌

pincode (Deprecated)

Body

The pin that will encrypt and decrypt the wallet

String

❌

Request Body:

JSON

{
  "secretType": "MATIC",
  "userId": "afcdd208-098e-4750-9cb8-30822335f366",
  "identifier": "f777cd5c-376f-40a8-87f7-f0336379dd21",
  "description": "This is a test wallet"
}

Response Body:

πŸ‘

The wallet has been created an linked to the specified user (userId).

JSON

{
    "success": true,
    "result": {
        "id": "a076dd02-04ab-439b-8618-626a4b44f99f",
        "address": "0x10BFeBA6BEaB453c79b33Bfa1abDbD93BB8252ac",
        "walletType": "API_WALLET",
        "secretType": "MATIC",
        "createdAt": "2024-06-12T14:34:26.762565775",
        "archived": false,
        "description": "This is a test wallet",
        "primary": false,
        "hasCustomPin": false,
        "identifier": "f777cd5c-376f-40a8-87f7-f0336379dd21",
        "userId": "afcdd208-098e-4750-9cb8-30822335f366",
        "custodial": false,
        "balance": {
            "available": true,
            "secretType": "MATIC",
            "balance": 0,
            "gasBalance": 0,
            "symbol": "MATIC",
            "gasSymbol": "MATIC",
            "rawBalance": "0",
            "rawGasBalance": "0",
            "decimals": 18
        }
    }
}

Last updated