Logo

MPC

The MPC module offers you a seamless way to integrate the functionalities of a decentralized wallet, along with the capability to send and receive your crypto assets. This module covers everything from setting up a single wallet to managing multiple ones, all without delving into the complexities of web3.0 terminology. This ensures a smoother integration and user experience overall.

Questions?

Don't let uncertainty hold you back. Ask us anything and get the answers you need to take your business to the next level.

LET'S TALK

ACCOUNTS

The accounts module allows you to create and manage multiple accounts, each with their own wallets. This allows you to manage your crypto assets in a more organized manner, and also allows you to create multiple wallets for the same or different blockchain.

Example

Create an account

curl -X POST https://api.cryptomate.app/mpc/accounts/create -H 'x-api-key: 1234567890' -H 'Content-Type: application/json' -d '{"alias": "My first account"}'

GET

Get all accounts

Retrieves all the accounts.

Parameters

    Name
    x-api-key
    Type
    string
    Description

    Identifier used to authenticate a user for the use of the CryptoMate APIs.

GET

/mpc/accounts/list

Response

{
    "id": "string",
    "alias": "string",
    "wallets": [
        {
            "id": "string",
            "alias": "string",
            "wallet_address": "string",
            "blockchain": "string"
        }
    ]
}

POST

Create an account

Creates a new account.

Parameters

    PATCH

    /mpc/accounts/create

    Response

      {
          "id": "String",
          "alias": "String",
          "wallets": []
      }
    

    PUT

    Edit account

    Modifies the account information.

    Parameters

      PUT

      /mpc/account/:account-id

      Response

      {
          "id": "string",
          "alias": "string",
          "wallets": [
              {
                  "id": "string",
                  "alias": "string",
                  "wallet_address": "string",
                  "blockchain": "string"
              }
          ]
      }
      

      DELETE

      Delete account

      Delete the specified account. An account cannot be deleted if it's has any wallets associated with it.

      Parameters

        DELETE

        /mpc/account/:account-id

        Response

        None
        

        WALLETS

        Example

        Create a wallet

        curl -X POST https://api.cryptomate.app/mpc/accounts/:accountId/wallets/create -H 'x-api-key: 1234567890' 'accountId: 1234567890' -H 'Content-Type: application/json' -d '{"alias": "My first wallet"}'
        

        GET

        Get a wallet

        Retrieves a wallet by ID.

        Parameters

          GET

          /mpc/accounts/:account-id/wallets/wallet-id

          Response

          {
             "id": "string",
             "alias": "string",
             "wallet_address": "string",
             "blockchain": "string"
          }
          

          GET

          Get all wallets

          Retrieves all the wallets of the specified account.

          Parameters

            GET

            /mpc/accounts/:account-id/wallets/list

            Response

             {
                 "id": "string",
                 "alias": "string",
                 "wallet_address": "string",
                 "blockchain": "string"
             }
            

            POST

            Create a wallet

            Creates a new wallet on the account.

            Parameters

              POST

              /mpc/accounts/:account-id/wallets/create

              Response

              {
              "id": "string",
              "alias": "string",
              "wallet_address": "string",
              "blockchain": "string"
              }
              

              PUT

              Update wallet

              Modifies the wallet information.

              Parameters

                PUT

                /mpc/accounts/:account-id/wallets/:wallet-id/update

                Response

                {
                "id": "string",
                "alias": "string",
                "wallet_address": "string",
                "blockchain": "string"
                }
                


                POST

                Transfer token

                Transfer any of listed tokens that is on your MPC wallet to another wallet (internal or external).

                Parameters

                  POST

                  /mpc/accounts/:account-id/wallets/:wallet-id/transfer

                  Response

                  {
                      "transaction_hash": "string",
                      "status": "success|failed|pending",
                  }
                  

                  GET

                  Balance

                  Returns the balance of all the listed tokens from the blockchain of a wallet, with the amount of them even if they are 0.

                  Parameters

                    GET

                    /mpc/accounts/:account-id/wallets/:wallet-id/balance

                    Response

                    [
                       {
                           "name": "string",
                           "symbol": "string",
                           "balance": 0.0,
                           "token_address": "string"
                       }
                    ]