Create New Master Wallet

Through this endpoint users can easily create a new Master Wallet through the API. The user provides the desired Wallet name and in return the response includes the walletId. That new Wallet can be additionally also backed up through the Crypto APIs Dashboard.

Single Result - This endpoint returns only one single result. POST /wallet-as-a-service/wallets/generate

Query parameters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString

Request body schema application/json

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        walletName string

        Defines the name of the wallet that will be generated.

        Example : yourWalletName
      • Required
        walletType string

        Represents if the generated wallet is only for mainnet or only for testnet .

        Example : test
        Possible Values : main test

Response schema

201 400 401 402 403 409 415 422 429 500
HTTP Status Code: 201
Content-Type: application/json

The resource has been successfully created.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2023-04-25
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        walletId string

        Represents the sender's specific and unique Wallet ID of the sender.

        Example : 62b9b5c3b97f4b0108092716

Credits Cost : 10000 Credits For 1 Result(s)

Try it out

Request Example

POST
https://rest.cryptoapis.io/wallet-as-a-service/wallets/generate?context=yourExampleString
Headers
Content-Type: application/json
X-API-Key: my-api-key

Request Body
{
    "context": "yourExampleString",
    "data": {
        "item": {
            "walletName": "yourWalletName",
            "walletType": "test"
        }
    }
}

Response Example

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "walletId": "62b9b5c3b97f4b0108092716"
        }
    }
}