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 TALKACCOUNTS
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 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.
/mpc/accounts/list
Response
{
"id": "string",
"alias": "string",
"wallets": [
{
"id": "string",
"alias": "string",
"wallet_address": "string",
"blockchain": "string"
}
]
}
/mpc/accounts/create
Response
{
"id": "String",
"alias": "String",
"wallets": []
}
/mpc/account/:account-id
Response
{
"id": "string",
"alias": "string",
"wallets": [
{
"id": "string",
"alias": "string",
"wallet_address": "string",
"blockchain": "string"
}
]
}
Delete account
Delete the specified account. An account cannot be deleted if it's has any wallets associated with it.
Parameters
/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"}'
/mpc/accounts/:account-id/wallets/wallet-id
Response
{
"id": "string",
"alias": "string",
"wallet_address": "string",
"blockchain": "string"
}
/mpc/accounts/:account-id/wallets/list
Response
{
"id": "string",
"alias": "string",
"wallet_address": "string",
"blockchain": "string"
}
/mpc/accounts/:account-id/wallets/create
Response
{
"id": "string",
"alias": "string",
"wallet_address": "string",
"blockchain": "string"
}
/mpc/accounts/:account-id/wallets/:wallet-id/update
Response
{
"id": "string",
"alias": "string",
"wallet_address": "string",
"blockchain": "string"
}
Transfer token
Transfer any of listed tokens that is on your MPC wallet to another wallet (internal or external).
Parameters
/mpc/accounts/:account-id/wallets/:wallet-id/transfer
Response
{
"transaction_hash": "string",
"status": "success|failed|pending",
}
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
/mpc/accounts/:account-id/wallets/:wallet-id/balance
Response
[
{
"name": "string",
"symbol": "string",
"balance": 0.0,
"token_address": "string"
}
]