curl --request POST \
--url https://api.mpcvault.com/v1/createSigningRequest \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"notes": "<string>",
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"broadcastTx": true,
"aptosMessage": {
"from": "<string>",
"content": {
"message": "message",
"nonce": "1",
"address": "<string>",
"application": "application",
"chainId": "137"
}
},
"aptosSendCoin": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendCustom": {
"chainId": "1",
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendNative": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"btcSendNative": {
"from": "<string>",
"to": "<string>",
"amount": "1000000000000000",
"networkFee": "1"
},
"evmMessage": {
"chainId": "137",
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"evmSendCustom": {
"chainId": "1",
"from": "<string>",
"value": "1000000000000000",
"to": "<string>",
"input": "qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendErc20": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"tokenContractAddress": "<string>",
"amount": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendNative": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"rawMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"solanaSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"solanaSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"sonicSvmSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"sonicSvmSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"sonicSvmSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"stellarChangeTrust": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"memo": "stellar change trust"
},
"stellarSendAsset": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount": "10.1",
"memo": "stellar send asset"
},
"stellarSendCustom": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"txBase64": "AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=="
},
"stellarSendNative": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"value": "10.1",
"memo": "stellar send native"
},
"suiMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendCoin": {
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"suiSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"tonMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"comment": "<string>"
},
"tonSendToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"amount": "<string>",
"comment": "ton send token comment",
"decimals": "6"
},
"tronSendNative": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"value": "1000000000000000"
},
"tronSendTrc10": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"assetName": "ETH",
"amount": "<string>"
},
"tronSendTrc20": {
"from": "<string>",
"to": "<string>",
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "<string>",
"feeLimit": "<string>"
}
}
'import requests
url = "https://api.mpcvault.com/v1/createSigningRequest"
payload = {
"notes": "<string>",
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"broadcastTx": True,
"aptosMessage": {
"from": "<string>",
"content": {
"message": "message",
"nonce": "1",
"address": "<string>",
"application": "application",
"chainId": "137"
}
},
"aptosSendCoin": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendCustom": {
"chainId": "1",
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendNative": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"btcSendNative": {
"from": "<string>",
"to": "<string>",
"amount": "1000000000000000",
"networkFee": "1"
},
"evmMessage": {
"chainId": "137",
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"evmSendCustom": {
"chainId": "1",
"from": "<string>",
"value": "1000000000000000",
"to": "<string>",
"input": "qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendErc20": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"tokenContractAddress": "<string>",
"amount": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendNative": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"rawMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaSendCustom": {
"from": "<string>",
"txBase64": ["<string>"],
"chainId": "101"
},
"solanaSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"solanaSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"sonicSvmSendCustom": {
"from": "<string>",
"txBase64": ["<string>"],
"chainId": "101"
},
"sonicSvmSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"sonicSvmSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"stellarChangeTrust": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"memo": "stellar change trust"
},
"stellarSendAsset": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount": "10.1",
"memo": "stellar send asset"
},
"stellarSendCustom": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"txBase64": "AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=="
},
"stellarSendNative": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"value": "10.1",
"memo": "stellar send native"
},
"suiMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendCoin": {
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"suiSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"tonMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"comment": "<string>"
},
"tonSendToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"amount": "<string>",
"comment": "ton send token comment",
"decimals": "6"
},
"tronSendNative": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"value": "1000000000000000"
},
"tronSendTrc10": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"assetName": "ETH",
"amount": "<string>"
},
"tronSendTrc20": {
"from": "<string>",
"to": "<string>",
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "<string>",
"feeLimit": "<string>"
}
}
headers = {
"x-mtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-mtoken': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notes: '<string>',
vaultUuid: '9f5ee5fb-07f5-470c-a2ff-081e2d6d107a',
callbackClientSignerPublicKey: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test',
broadcastTx: true,
aptosMessage: {
from: '<string>',
content: {
message: 'message',
nonce: '1',
address: '<string>',
application: 'application',
chainId: '137'
}
},
aptosSendCoin: {
chainId: '1',
from: '<string>',
to: '<string>',
coinTag: 'tx_hash:0a1b2c3d...789e, output_index:0',
amount: '<string>',
gasFee: {maxGasAmount: '<string>', gasUnitPrice: '<string>'}
},
aptosSendCustom: {
chainId: '1',
from: '<string>',
payload: 'aSDinaTvuI8gbWludGxpZnk=',
gasFee: {maxGasAmount: '<string>', gasUnitPrice: '<string>'}
},
aptosSendNative: {
chainId: '1',
from: '<string>',
to: '<string>',
value: '<string>',
gasFee: {maxGasAmount: '<string>', gasUnitPrice: '<string>'}
},
btcSendNative: {from: '<string>', to: '<string>', amount: '1000000000000000', networkFee: '1'},
evmMessage: {chainId: '137', from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
evmSendCustom: {
chainId: '1',
from: '<string>',
value: '1000000000000000',
to: '<string>',
input: 'qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=',
gasFee: {maxFee: '<string>', maxPriorityFee: '1500000000', gasLimit: '30000000000'},
nonce: '1'
},
evmSendErc20: {
chainId: '137',
from: '<string>',
to: '<string>',
tokenContractAddress: '<string>',
amount: '1000000000000000',
gasFee: {maxFee: '<string>', maxPriorityFee: '1500000000', gasLimit: '30000000000'},
nonce: '1'
},
evmSendNative: {
chainId: '137',
from: '<string>',
to: '<string>',
value: '1000000000000000',
gasFee: {maxFee: '<string>', maxPriorityFee: '1500000000', gasLimit: '30000000000'},
nonce: '1'
},
rawMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
solanaMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
solanaSendCustom: {from: '<string>', txBase64: ['<string>'], chainId: '101'},
solanaSendNative: {from: '<string>', to: '<string>', value: '1000000000000000', chainId: '101'},
solanaSendSplToken: {
from: '<string>',
to: '<string>',
mintAddress: '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
amount: '1000000000000000',
chainId: '101',
decimals: '6'
},
sonicSvmSendCustom: {from: '<string>', txBase64: ['<string>'], chainId: '101'},
sonicSvmSendNative: {from: '<string>', to: '<string>', value: '1000000000000000', chainId: '101'},
sonicSvmSendSplToken: {
from: '<string>',
to: '<string>',
mintAddress: '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
amount: '1000000000000000',
chainId: '101',
decimals: '6'
},
stellarChangeTrust: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
assetCode: 'USDC',
assetIssuer: 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
memo: 'stellar change trust'
},
stellarSendAsset: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
to: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
assetCode: 'USDC',
assetIssuer: 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
amount: '10.1',
memo: 'stellar send asset'
},
stellarSendCustom: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
txBase64: 'AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=='
},
stellarSendNative: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
to: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
value: '10.1',
memo: 'stellar send native'
},
suiMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
suiSendCoin: {
from: '<string>',
to: '<string>',
coinTag: 'tx_hash:0a1b2c3d...789e, output_index:0',
amount: '<string>',
gasFee: {budget: '<string>', price: '<string>'}
},
suiSendCustom: {from: '<string>', payload: 'aSDinaTvuI8gbWludGxpZnk='},
suiSendNative: {
from: '<string>',
to: '<string>',
value: '<string>',
gasFee: {budget: '<string>', price: '<string>'}
},
tonMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
tonSendCustom: {from: '<string>', payload: 'aSDinaTvuI8gbWludGxpZnk='},
tonSendNative: {from: '<string>', to: '<string>', value: '<string>', comment: '<string>'},
tonSendToken: {
from: '<string>',
to: '<string>',
mintAddress: 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs',
amount: '<string>',
comment: 'ton send token comment',
decimals: '6'
},
tronSendNative: {
from: '<string>',
to: 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
value: '1000000000000000'
},
tronSendTrc10: {
from: '<string>',
to: 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
assetName: 'ETH',
amount: '<string>'
},
tronSendTrc20: {
from: '<string>',
to: '<string>',
contractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
amount: '<string>',
feeLimit: '<string>'
}
})
};
fetch('https://api.mpcvault.com/v1/createSigningRequest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mpcvault.com/v1/createSigningRequest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'notes' => '<string>',
'vaultUuid' => '9f5ee5fb-07f5-470c-a2ff-081e2d6d107a',
'callbackClientSignerPublicKey' => 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test',
'broadcastTx' => true,
'aptosMessage' => [
'from' => '<string>',
'content' => [
'message' => 'message',
'nonce' => '1',
'address' => '<string>',
'application' => 'application',
'chainId' => '137'
]
],
'aptosSendCoin' => [
'chainId' => '1',
'from' => '<string>',
'to' => '<string>',
'coinTag' => 'tx_hash:0a1b2c3d...789e, output_index:0',
'amount' => '<string>',
'gasFee' => [
'maxGasAmount' => '<string>',
'gasUnitPrice' => '<string>'
]
],
'aptosSendCustom' => [
'chainId' => '1',
'from' => '<string>',
'payload' => 'aSDinaTvuI8gbWludGxpZnk=',
'gasFee' => [
'maxGasAmount' => '<string>',
'gasUnitPrice' => '<string>'
]
],
'aptosSendNative' => [
'chainId' => '1',
'from' => '<string>',
'to' => '<string>',
'value' => '<string>',
'gasFee' => [
'maxGasAmount' => '<string>',
'gasUnitPrice' => '<string>'
]
],
'btcSendNative' => [
'from' => '<string>',
'to' => '<string>',
'amount' => '1000000000000000',
'networkFee' => '1'
],
'evmMessage' => [
'chainId' => '137',
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'evmSendCustom' => [
'chainId' => '1',
'from' => '<string>',
'value' => '1000000000000000',
'to' => '<string>',
'input' => 'qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=',
'gasFee' => [
'maxFee' => '<string>',
'maxPriorityFee' => '1500000000',
'gasLimit' => '30000000000'
],
'nonce' => '1'
],
'evmSendErc20' => [
'chainId' => '137',
'from' => '<string>',
'to' => '<string>',
'tokenContractAddress' => '<string>',
'amount' => '1000000000000000',
'gasFee' => [
'maxFee' => '<string>',
'maxPriorityFee' => '1500000000',
'gasLimit' => '30000000000'
],
'nonce' => '1'
],
'evmSendNative' => [
'chainId' => '137',
'from' => '<string>',
'to' => '<string>',
'value' => '1000000000000000',
'gasFee' => [
'maxFee' => '<string>',
'maxPriorityFee' => '1500000000',
'gasLimit' => '30000000000'
],
'nonce' => '1'
],
'rawMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'solanaMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'solanaSendCustom' => [
'from' => '<string>',
'txBase64' => [
'<string>'
],
'chainId' => '101'
],
'solanaSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '1000000000000000',
'chainId' => '101'
],
'solanaSendSplToken' => [
'from' => '<string>',
'to' => '<string>',
'mintAddress' => '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
'amount' => '1000000000000000',
'chainId' => '101',
'decimals' => '6'
],
'sonicSvmSendCustom' => [
'from' => '<string>',
'txBase64' => [
'<string>'
],
'chainId' => '101'
],
'sonicSvmSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '1000000000000000',
'chainId' => '101'
],
'sonicSvmSendSplToken' => [
'from' => '<string>',
'to' => '<string>',
'mintAddress' => '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
'amount' => '1000000000000000',
'chainId' => '101',
'decimals' => '6'
],
'stellarChangeTrust' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'assetCode' => 'USDC',
'assetIssuer' => 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
'memo' => 'stellar change trust'
],
'stellarSendAsset' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'to' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'assetCode' => 'USDC',
'assetIssuer' => 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
'amount' => '10.1',
'memo' => 'stellar send asset'
],
'stellarSendCustom' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'txBase64' => 'AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=='
],
'stellarSendNative' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'to' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'value' => '10.1',
'memo' => 'stellar send native'
],
'suiMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'suiSendCoin' => [
'from' => '<string>',
'to' => '<string>',
'coinTag' => 'tx_hash:0a1b2c3d...789e, output_index:0',
'amount' => '<string>',
'gasFee' => [
'budget' => '<string>',
'price' => '<string>'
]
],
'suiSendCustom' => [
'from' => '<string>',
'payload' => 'aSDinaTvuI8gbWludGxpZnk='
],
'suiSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '<string>',
'gasFee' => [
'budget' => '<string>',
'price' => '<string>'
]
],
'tonMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'tonSendCustom' => [
'from' => '<string>',
'payload' => 'aSDinaTvuI8gbWludGxpZnk='
],
'tonSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '<string>',
'comment' => '<string>'
],
'tonSendToken' => [
'from' => '<string>',
'to' => '<string>',
'mintAddress' => 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs',
'amount' => '<string>',
'comment' => 'ton send token comment',
'decimals' => '6'
],
'tronSendNative' => [
'from' => '<string>',
'to' => 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
'value' => '1000000000000000'
],
'tronSendTrc10' => [
'from' => '<string>',
'to' => 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
'assetName' => 'ETH',
'amount' => '<string>'
],
'tronSendTrc20' => [
'from' => '<string>',
'to' => '<string>',
'contractAddress' => 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
'amount' => '<string>',
'feeLimit' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-mtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mpcvault.com/v1/createSigningRequest"
payload := strings.NewReader("{\n \"notes\": \"<string>\",\n \"vaultUuid\": \"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a\",\n \"callbackClientSignerPublicKey\": \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test\",\n \"broadcastTx\": true,\n \"aptosMessage\": {\n \"from\": \"<string>\",\n \"content\": {\n \"message\": \"message\",\n \"nonce\": \"1\",\n \"address\": \"<string>\",\n \"application\": \"application\",\n \"chainId\": \"137\"\n }\n },\n \"aptosSendCoin\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendNative\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"btcSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"networkFee\": \"1\"\n },\n \"evmMessage\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"evmSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"to\": \"<string>\",\n \"input\": \"qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendErc20\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendNative\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"rawMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"solanaSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"solanaSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"sonicSvmSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"sonicSvmSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"sonicSvmSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"stellarChangeTrust\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"memo\": \"stellar change trust\"\n },\n \"stellarSendAsset\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"amount\": \"10.1\",\n \"memo\": \"stellar send asset\"\n },\n \"stellarSendCustom\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"txBase64\": \"AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA==\"\n },\n \"stellarSendNative\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"value\": \"10.1\",\n \"memo\": \"stellar send native\"\n },\n \"suiMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendCoin\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"suiSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"tonMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"comment\": \"<string>\"\n },\n \"tonSendToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\",\n \"amount\": \"<string>\",\n \"comment\": \"ton send token comment\",\n \"decimals\": \"6\"\n },\n \"tronSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"value\": \"1000000000000000\"\n },\n \"tronSendTrc10\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"assetName\": \"ETH\",\n \"amount\": \"<string>\"\n },\n \"tronSendTrc20\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"contractAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"<string>\",\n \"feeLimit\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-mtoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mpcvault.com/v1/createSigningRequest")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"notes\": \"<string>\",\n \"vaultUuid\": \"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a\",\n \"callbackClientSignerPublicKey\": \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test\",\n \"broadcastTx\": true,\n \"aptosMessage\": {\n \"from\": \"<string>\",\n \"content\": {\n \"message\": \"message\",\n \"nonce\": \"1\",\n \"address\": \"<string>\",\n \"application\": \"application\",\n \"chainId\": \"137\"\n }\n },\n \"aptosSendCoin\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendNative\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"btcSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"networkFee\": \"1\"\n },\n \"evmMessage\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"evmSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"to\": \"<string>\",\n \"input\": \"qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendErc20\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendNative\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"rawMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"solanaSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"solanaSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"sonicSvmSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"sonicSvmSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"sonicSvmSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"stellarChangeTrust\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"memo\": \"stellar change trust\"\n },\n \"stellarSendAsset\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"amount\": \"10.1\",\n \"memo\": \"stellar send asset\"\n },\n \"stellarSendCustom\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"txBase64\": \"AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA==\"\n },\n \"stellarSendNative\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"value\": \"10.1\",\n \"memo\": \"stellar send native\"\n },\n \"suiMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendCoin\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"suiSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"tonMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"comment\": \"<string>\"\n },\n \"tonSendToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\",\n \"amount\": \"<string>\",\n \"comment\": \"ton send token comment\",\n \"decimals\": \"6\"\n },\n \"tronSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"value\": \"1000000000000000\"\n },\n \"tronSendTrc10\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"assetName\": \"ETH\",\n \"amount\": \"<string>\"\n },\n \"tronSendTrc20\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"contractAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"<string>\",\n \"feeLimit\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mpcvault.com/v1/createSigningRequest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-mtoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notes\": \"<string>\",\n \"vaultUuid\": \"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a\",\n \"callbackClientSignerPublicKey\": \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test\",\n \"broadcastTx\": true,\n \"aptosMessage\": {\n \"from\": \"<string>\",\n \"content\": {\n \"message\": \"message\",\n \"nonce\": \"1\",\n \"address\": \"<string>\",\n \"application\": \"application\",\n \"chainId\": \"137\"\n }\n },\n \"aptosSendCoin\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendNative\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"btcSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"networkFee\": \"1\"\n },\n \"evmMessage\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"evmSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"to\": \"<string>\",\n \"input\": \"qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendErc20\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendNative\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"rawMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"solanaSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"solanaSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"sonicSvmSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"sonicSvmSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"sonicSvmSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"stellarChangeTrust\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"memo\": \"stellar change trust\"\n },\n \"stellarSendAsset\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"amount\": \"10.1\",\n \"memo\": \"stellar send asset\"\n },\n \"stellarSendCustom\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"txBase64\": \"AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA==\"\n },\n \"stellarSendNative\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"value\": \"10.1\",\n \"memo\": \"stellar send native\"\n },\n \"suiMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendCoin\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"suiSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"tonMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"comment\": \"<string>\"\n },\n \"tonSendToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\",\n \"amount\": \"<string>\",\n \"comment\": \"ton send token comment\",\n \"decimals\": \"6\"\n },\n \"tronSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"value\": \"1000000000000000\"\n },\n \"tronSendTrc10\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"assetName\": \"ETH\",\n \"amount\": \"<string>\"\n },\n \"tronSendTrc20\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"contractAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"<string>\",\n \"feeLimit\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"signingRequest": {
"uuid": "bb6f129f-bbe3-4d95-9f33-c32812e3e1c4",
"status": "STATUS_UNSPECIFIED",
"txHash": "3Eq21vXNB5s86c62bVuUfTerseghjkuUqRPBmGRJhyTA",
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"failedReason": "failed reason",
"creationTimestamp": "1744274467154",
"notes": "<string>",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"simulation": "aSDinaTvuI8gbWludGxpZnk=",
"evmInputDataDecode": {
"function": "function_name(arg1_type arg1_value, arg2_type arg2_value, ...)",
"args": [
{
"name": "<string>",
"type": "<string>",
"data": "<string>"
}
]
},
"signatures": {
"signatures": [
{
"ecdsaSignature": {
"R": "<string>",
"S": "<string>",
"V": "<string>"
},
"eddsaSignature": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+Pw=="
}
]
},
"source": {
"type": "TYPE_UNSPECIFIED",
"website": "app.uniswap.org"
},
"aptosMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": {
"message": "message",
"nonce": "1",
"address": "<string>",
"application": "application",
"chainId": "137"
}
},
"aptosSendCoin": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendCustom": {
"chainId": "1",
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendNative": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"btcSendNative": {
"from": "<string>",
"to": "<string>",
"amount": "1000000000000000",
"networkFee": "1"
},
"createWallet": {
"vaultUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"networkType": "NETWORK_TYPE_UNKNOWN",
"ref": "0x4321567890abcdef4321567890abcdef123456",
"name": "test wallet"
},
"evmMessage": {
"chainId": "137",
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"evmSendCustom": {
"chainId": "1",
"from": "<string>",
"value": "1000000000000000",
"to": "<string>",
"input": "qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendErc20": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"tokenContractAddress": "<string>",
"amount": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendNative": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"rawMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk=",
"ecdsaHashFunction": "ECDSA_HASH_FUNCTION_UNSPECIFIED"
},
"solanaMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"solanaSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"solanaSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"sonicSvmSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"sonicSvmSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"sonicSvmSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"stellarChangeTrust": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"memo": "stellar change trust"
},
"swapApproval": {},
"swapSend": {},
"batchPaymentApproval": {},
"batchPaymentSend": {},
"fiatPayment": {},
"aptosRegisterCoin": {},
"aptosOpenToken": {},
"vaultCreation": {},
"vaultSettingUpdate": {},
"rootKeyGeneration": {},
"rootKeyBackup": {},
"keyAccessGrant": {},
"stellarSendAsset": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount": "10.1",
"memo": "stellar send asset"
},
"stellarSendCustom": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"txBase64": "AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=="
},
"stellarSendNative": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"value": "10.1",
"memo": "stellar send native"
},
"suiMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendCoin": {
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"suiSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"tonMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"comment": "<string>"
},
"tonSendToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"amount": "<string>",
"comment": "ton send token comment",
"decimals": "6"
},
"tronSendNative": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"value": "1000000000000000"
},
"tronSendTrc10": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"assetName": "ETH",
"amount": "<string>"
},
"tronSendTrc20": {
"from": "<string>",
"to": "<string>",
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "<string>",
"feeLimit": "<string>"
}
},
"error": {
"message": "<string>",
"executeSigningRequestsErrorCode": "EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED",
"serviceErrorCode": "SERVICE_ERROR_CODE_UNSPECIFIED"
}
}CreateSigningRequest
Create a signing request for a transaction or message. Complete it in the MPCVault app or via the API client signer.
curl --request POST \
--url https://api.mpcvault.com/v1/createSigningRequest \
--header 'Content-Type: application/json' \
--header 'x-mtoken: <api-key>' \
--data '
{
"notes": "<string>",
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"broadcastTx": true,
"aptosMessage": {
"from": "<string>",
"content": {
"message": "message",
"nonce": "1",
"address": "<string>",
"application": "application",
"chainId": "137"
}
},
"aptosSendCoin": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendCustom": {
"chainId": "1",
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendNative": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"btcSendNative": {
"from": "<string>",
"to": "<string>",
"amount": "1000000000000000",
"networkFee": "1"
},
"evmMessage": {
"chainId": "137",
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"evmSendCustom": {
"chainId": "1",
"from": "<string>",
"value": "1000000000000000",
"to": "<string>",
"input": "qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendErc20": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"tokenContractAddress": "<string>",
"amount": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendNative": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"rawMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"solanaSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"solanaSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"sonicSvmSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"sonicSvmSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"sonicSvmSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"stellarChangeTrust": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"memo": "stellar change trust"
},
"stellarSendAsset": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount": "10.1",
"memo": "stellar send asset"
},
"stellarSendCustom": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"txBase64": "AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=="
},
"stellarSendNative": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"value": "10.1",
"memo": "stellar send native"
},
"suiMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendCoin": {
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"suiSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"tonMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"comment": "<string>"
},
"tonSendToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"amount": "<string>",
"comment": "ton send token comment",
"decimals": "6"
},
"tronSendNative": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"value": "1000000000000000"
},
"tronSendTrc10": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"assetName": "ETH",
"amount": "<string>"
},
"tronSendTrc20": {
"from": "<string>",
"to": "<string>",
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "<string>",
"feeLimit": "<string>"
}
}
'import requests
url = "https://api.mpcvault.com/v1/createSigningRequest"
payload = {
"notes": "<string>",
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"broadcastTx": True,
"aptosMessage": {
"from": "<string>",
"content": {
"message": "message",
"nonce": "1",
"address": "<string>",
"application": "application",
"chainId": "137"
}
},
"aptosSendCoin": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendCustom": {
"chainId": "1",
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendNative": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"btcSendNative": {
"from": "<string>",
"to": "<string>",
"amount": "1000000000000000",
"networkFee": "1"
},
"evmMessage": {
"chainId": "137",
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"evmSendCustom": {
"chainId": "1",
"from": "<string>",
"value": "1000000000000000",
"to": "<string>",
"input": "qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendErc20": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"tokenContractAddress": "<string>",
"amount": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendNative": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"rawMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaSendCustom": {
"from": "<string>",
"txBase64": ["<string>"],
"chainId": "101"
},
"solanaSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"solanaSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"sonicSvmSendCustom": {
"from": "<string>",
"txBase64": ["<string>"],
"chainId": "101"
},
"sonicSvmSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"sonicSvmSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"stellarChangeTrust": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"memo": "stellar change trust"
},
"stellarSendAsset": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount": "10.1",
"memo": "stellar send asset"
},
"stellarSendCustom": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"txBase64": "AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=="
},
"stellarSendNative": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"value": "10.1",
"memo": "stellar send native"
},
"suiMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendCoin": {
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"suiSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"tonMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"comment": "<string>"
},
"tonSendToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"amount": "<string>",
"comment": "ton send token comment",
"decimals": "6"
},
"tronSendNative": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"value": "1000000000000000"
},
"tronSendTrc10": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"assetName": "ETH",
"amount": "<string>"
},
"tronSendTrc20": {
"from": "<string>",
"to": "<string>",
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "<string>",
"feeLimit": "<string>"
}
}
headers = {
"x-mtoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-mtoken': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notes: '<string>',
vaultUuid: '9f5ee5fb-07f5-470c-a2ff-081e2d6d107a',
callbackClientSignerPublicKey: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test',
broadcastTx: true,
aptosMessage: {
from: '<string>',
content: {
message: 'message',
nonce: '1',
address: '<string>',
application: 'application',
chainId: '137'
}
},
aptosSendCoin: {
chainId: '1',
from: '<string>',
to: '<string>',
coinTag: 'tx_hash:0a1b2c3d...789e, output_index:0',
amount: '<string>',
gasFee: {maxGasAmount: '<string>', gasUnitPrice: '<string>'}
},
aptosSendCustom: {
chainId: '1',
from: '<string>',
payload: 'aSDinaTvuI8gbWludGxpZnk=',
gasFee: {maxGasAmount: '<string>', gasUnitPrice: '<string>'}
},
aptosSendNative: {
chainId: '1',
from: '<string>',
to: '<string>',
value: '<string>',
gasFee: {maxGasAmount: '<string>', gasUnitPrice: '<string>'}
},
btcSendNative: {from: '<string>', to: '<string>', amount: '1000000000000000', networkFee: '1'},
evmMessage: {chainId: '137', from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
evmSendCustom: {
chainId: '1',
from: '<string>',
value: '1000000000000000',
to: '<string>',
input: 'qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=',
gasFee: {maxFee: '<string>', maxPriorityFee: '1500000000', gasLimit: '30000000000'},
nonce: '1'
},
evmSendErc20: {
chainId: '137',
from: '<string>',
to: '<string>',
tokenContractAddress: '<string>',
amount: '1000000000000000',
gasFee: {maxFee: '<string>', maxPriorityFee: '1500000000', gasLimit: '30000000000'},
nonce: '1'
},
evmSendNative: {
chainId: '137',
from: '<string>',
to: '<string>',
value: '1000000000000000',
gasFee: {maxFee: '<string>', maxPriorityFee: '1500000000', gasLimit: '30000000000'},
nonce: '1'
},
rawMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
solanaMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
solanaSendCustom: {from: '<string>', txBase64: ['<string>'], chainId: '101'},
solanaSendNative: {from: '<string>', to: '<string>', value: '1000000000000000', chainId: '101'},
solanaSendSplToken: {
from: '<string>',
to: '<string>',
mintAddress: '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
amount: '1000000000000000',
chainId: '101',
decimals: '6'
},
sonicSvmSendCustom: {from: '<string>', txBase64: ['<string>'], chainId: '101'},
sonicSvmSendNative: {from: '<string>', to: '<string>', value: '1000000000000000', chainId: '101'},
sonicSvmSendSplToken: {
from: '<string>',
to: '<string>',
mintAddress: '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
amount: '1000000000000000',
chainId: '101',
decimals: '6'
},
stellarChangeTrust: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
assetCode: 'USDC',
assetIssuer: 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
memo: 'stellar change trust'
},
stellarSendAsset: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
to: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
assetCode: 'USDC',
assetIssuer: 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
amount: '10.1',
memo: 'stellar send asset'
},
stellarSendCustom: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
txBase64: 'AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=='
},
stellarSendNative: {
from: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
to: 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
value: '10.1',
memo: 'stellar send native'
},
suiMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
suiSendCoin: {
from: '<string>',
to: '<string>',
coinTag: 'tx_hash:0a1b2c3d...789e, output_index:0',
amount: '<string>',
gasFee: {budget: '<string>', price: '<string>'}
},
suiSendCustom: {from: '<string>', payload: 'aSDinaTvuI8gbWludGxpZnk='},
suiSendNative: {
from: '<string>',
to: '<string>',
value: '<string>',
gasFee: {budget: '<string>', price: '<string>'}
},
tonMessage: {from: '<string>', content: 'aSDinaTvuI8gbWludGxpZnk='},
tonSendCustom: {from: '<string>', payload: 'aSDinaTvuI8gbWludGxpZnk='},
tonSendNative: {from: '<string>', to: '<string>', value: '<string>', comment: '<string>'},
tonSendToken: {
from: '<string>',
to: '<string>',
mintAddress: 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs',
amount: '<string>',
comment: 'ton send token comment',
decimals: '6'
},
tronSendNative: {
from: '<string>',
to: 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
value: '1000000000000000'
},
tronSendTrc10: {
from: '<string>',
to: 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
assetName: 'ETH',
amount: '<string>'
},
tronSendTrc20: {
from: '<string>',
to: '<string>',
contractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
amount: '<string>',
feeLimit: '<string>'
}
})
};
fetch('https://api.mpcvault.com/v1/createSigningRequest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mpcvault.com/v1/createSigningRequest",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'notes' => '<string>',
'vaultUuid' => '9f5ee5fb-07f5-470c-a2ff-081e2d6d107a',
'callbackClientSignerPublicKey' => 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test',
'broadcastTx' => true,
'aptosMessage' => [
'from' => '<string>',
'content' => [
'message' => 'message',
'nonce' => '1',
'address' => '<string>',
'application' => 'application',
'chainId' => '137'
]
],
'aptosSendCoin' => [
'chainId' => '1',
'from' => '<string>',
'to' => '<string>',
'coinTag' => 'tx_hash:0a1b2c3d...789e, output_index:0',
'amount' => '<string>',
'gasFee' => [
'maxGasAmount' => '<string>',
'gasUnitPrice' => '<string>'
]
],
'aptosSendCustom' => [
'chainId' => '1',
'from' => '<string>',
'payload' => 'aSDinaTvuI8gbWludGxpZnk=',
'gasFee' => [
'maxGasAmount' => '<string>',
'gasUnitPrice' => '<string>'
]
],
'aptosSendNative' => [
'chainId' => '1',
'from' => '<string>',
'to' => '<string>',
'value' => '<string>',
'gasFee' => [
'maxGasAmount' => '<string>',
'gasUnitPrice' => '<string>'
]
],
'btcSendNative' => [
'from' => '<string>',
'to' => '<string>',
'amount' => '1000000000000000',
'networkFee' => '1'
],
'evmMessage' => [
'chainId' => '137',
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'evmSendCustom' => [
'chainId' => '1',
'from' => '<string>',
'value' => '1000000000000000',
'to' => '<string>',
'input' => 'qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=',
'gasFee' => [
'maxFee' => '<string>',
'maxPriorityFee' => '1500000000',
'gasLimit' => '30000000000'
],
'nonce' => '1'
],
'evmSendErc20' => [
'chainId' => '137',
'from' => '<string>',
'to' => '<string>',
'tokenContractAddress' => '<string>',
'amount' => '1000000000000000',
'gasFee' => [
'maxFee' => '<string>',
'maxPriorityFee' => '1500000000',
'gasLimit' => '30000000000'
],
'nonce' => '1'
],
'evmSendNative' => [
'chainId' => '137',
'from' => '<string>',
'to' => '<string>',
'value' => '1000000000000000',
'gasFee' => [
'maxFee' => '<string>',
'maxPriorityFee' => '1500000000',
'gasLimit' => '30000000000'
],
'nonce' => '1'
],
'rawMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'solanaMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'solanaSendCustom' => [
'from' => '<string>',
'txBase64' => [
'<string>'
],
'chainId' => '101'
],
'solanaSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '1000000000000000',
'chainId' => '101'
],
'solanaSendSplToken' => [
'from' => '<string>',
'to' => '<string>',
'mintAddress' => '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
'amount' => '1000000000000000',
'chainId' => '101',
'decimals' => '6'
],
'sonicSvmSendCustom' => [
'from' => '<string>',
'txBase64' => [
'<string>'
],
'chainId' => '101'
],
'sonicSvmSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '1000000000000000',
'chainId' => '101'
],
'sonicSvmSendSplToken' => [
'from' => '<string>',
'to' => '<string>',
'mintAddress' => '8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj',
'amount' => '1000000000000000',
'chainId' => '101',
'decimals' => '6'
],
'stellarChangeTrust' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'assetCode' => 'USDC',
'assetIssuer' => 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
'memo' => 'stellar change trust'
],
'stellarSendAsset' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'to' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'assetCode' => 'USDC',
'assetIssuer' => 'GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN',
'amount' => '10.1',
'memo' => 'stellar send asset'
],
'stellarSendCustom' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'txBase64' => 'AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=='
],
'stellarSendNative' => [
'from' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'to' => 'GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX',
'value' => '10.1',
'memo' => 'stellar send native'
],
'suiMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'suiSendCoin' => [
'from' => '<string>',
'to' => '<string>',
'coinTag' => 'tx_hash:0a1b2c3d...789e, output_index:0',
'amount' => '<string>',
'gasFee' => [
'budget' => '<string>',
'price' => '<string>'
]
],
'suiSendCustom' => [
'from' => '<string>',
'payload' => 'aSDinaTvuI8gbWludGxpZnk='
],
'suiSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '<string>',
'gasFee' => [
'budget' => '<string>',
'price' => '<string>'
]
],
'tonMessage' => [
'from' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
],
'tonSendCustom' => [
'from' => '<string>',
'payload' => 'aSDinaTvuI8gbWludGxpZnk='
],
'tonSendNative' => [
'from' => '<string>',
'to' => '<string>',
'value' => '<string>',
'comment' => '<string>'
],
'tonSendToken' => [
'from' => '<string>',
'to' => '<string>',
'mintAddress' => 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs',
'amount' => '<string>',
'comment' => 'ton send token comment',
'decimals' => '6'
],
'tronSendNative' => [
'from' => '<string>',
'to' => 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
'value' => '1000000000000000'
],
'tronSendTrc10' => [
'from' => '<string>',
'to' => 'TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7',
'assetName' => 'ETH',
'amount' => '<string>'
],
'tronSendTrc20' => [
'from' => '<string>',
'to' => '<string>',
'contractAddress' => 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
'amount' => '<string>',
'feeLimit' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-mtoken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mpcvault.com/v1/createSigningRequest"
payload := strings.NewReader("{\n \"notes\": \"<string>\",\n \"vaultUuid\": \"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a\",\n \"callbackClientSignerPublicKey\": \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test\",\n \"broadcastTx\": true,\n \"aptosMessage\": {\n \"from\": \"<string>\",\n \"content\": {\n \"message\": \"message\",\n \"nonce\": \"1\",\n \"address\": \"<string>\",\n \"application\": \"application\",\n \"chainId\": \"137\"\n }\n },\n \"aptosSendCoin\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendNative\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"btcSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"networkFee\": \"1\"\n },\n \"evmMessage\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"evmSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"to\": \"<string>\",\n \"input\": \"qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendErc20\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendNative\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"rawMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"solanaSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"solanaSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"sonicSvmSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"sonicSvmSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"sonicSvmSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"stellarChangeTrust\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"memo\": \"stellar change trust\"\n },\n \"stellarSendAsset\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"amount\": \"10.1\",\n \"memo\": \"stellar send asset\"\n },\n \"stellarSendCustom\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"txBase64\": \"AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA==\"\n },\n \"stellarSendNative\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"value\": \"10.1\",\n \"memo\": \"stellar send native\"\n },\n \"suiMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendCoin\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"suiSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"tonMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"comment\": \"<string>\"\n },\n \"tonSendToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\",\n \"amount\": \"<string>\",\n \"comment\": \"ton send token comment\",\n \"decimals\": \"6\"\n },\n \"tronSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"value\": \"1000000000000000\"\n },\n \"tronSendTrc10\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"assetName\": \"ETH\",\n \"amount\": \"<string>\"\n },\n \"tronSendTrc20\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"contractAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"<string>\",\n \"feeLimit\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-mtoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mpcvault.com/v1/createSigningRequest")
.header("x-mtoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"notes\": \"<string>\",\n \"vaultUuid\": \"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a\",\n \"callbackClientSignerPublicKey\": \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test\",\n \"broadcastTx\": true,\n \"aptosMessage\": {\n \"from\": \"<string>\",\n \"content\": {\n \"message\": \"message\",\n \"nonce\": \"1\",\n \"address\": \"<string>\",\n \"application\": \"application\",\n \"chainId\": \"137\"\n }\n },\n \"aptosSendCoin\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendNative\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"btcSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"networkFee\": \"1\"\n },\n \"evmMessage\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"evmSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"to\": \"<string>\",\n \"input\": \"qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendErc20\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendNative\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"rawMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"solanaSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"solanaSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"sonicSvmSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"sonicSvmSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"sonicSvmSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"stellarChangeTrust\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"memo\": \"stellar change trust\"\n },\n \"stellarSendAsset\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"amount\": \"10.1\",\n \"memo\": \"stellar send asset\"\n },\n \"stellarSendCustom\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"txBase64\": \"AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA==\"\n },\n \"stellarSendNative\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"value\": \"10.1\",\n \"memo\": \"stellar send native\"\n },\n \"suiMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendCoin\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"suiSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"tonMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"comment\": \"<string>\"\n },\n \"tonSendToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\",\n \"amount\": \"<string>\",\n \"comment\": \"ton send token comment\",\n \"decimals\": \"6\"\n },\n \"tronSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"value\": \"1000000000000000\"\n },\n \"tronSendTrc10\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"assetName\": \"ETH\",\n \"amount\": \"<string>\"\n },\n \"tronSendTrc20\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"contractAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"<string>\",\n \"feeLimit\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mpcvault.com/v1/createSigningRequest")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-mtoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notes\": \"<string>\",\n \"vaultUuid\": \"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a\",\n \"callbackClientSignerPublicKey\": \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test\",\n \"broadcastTx\": true,\n \"aptosMessage\": {\n \"from\": \"<string>\",\n \"content\": {\n \"message\": \"message\",\n \"nonce\": \"1\",\n \"address\": \"<string>\",\n \"application\": \"application\",\n \"chainId\": \"137\"\n }\n },\n \"aptosSendCoin\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"aptosSendNative\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"maxGasAmount\": \"<string>\",\n \"gasUnitPrice\": \"<string>\"\n }\n },\n \"btcSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"networkFee\": \"1\"\n },\n \"evmMessage\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"evmSendCustom\": {\n \"chainId\": \"1\",\n \"from\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"to\": \"<string>\",\n \"input\": \"qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendErc20\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"tokenContractAddress\": \"<string>\",\n \"amount\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"evmSendNative\": {\n \"chainId\": \"137\",\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"gasFee\": {\n \"maxFee\": \"<string>\",\n \"maxPriorityFee\": \"1500000000\",\n \"gasLimit\": \"30000000000\"\n },\n \"nonce\": \"1\"\n },\n \"rawMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"solanaSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"solanaSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"solanaSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"sonicSvmSendCustom\": {\n \"from\": \"<string>\",\n \"txBase64\": [\n \"<string>\"\n ],\n \"chainId\": \"101\"\n },\n \"sonicSvmSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"1000000000000000\",\n \"chainId\": \"101\"\n },\n \"sonicSvmSendSplToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj\",\n \"amount\": \"1000000000000000\",\n \"chainId\": \"101\",\n \"decimals\": \"6\"\n },\n \"stellarChangeTrust\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"memo\": \"stellar change trust\"\n },\n \"stellarSendAsset\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"assetCode\": \"USDC\",\n \"assetIssuer\": \"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN\",\n \"amount\": \"10.1\",\n \"memo\": \"stellar send asset\"\n },\n \"stellarSendCustom\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"txBase64\": \"AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA==\"\n },\n \"stellarSendNative\": {\n \"from\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"to\": \"GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX\",\n \"value\": \"10.1\",\n \"memo\": \"stellar send native\"\n },\n \"suiMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendCoin\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"coinTag\": \"tx_hash:0a1b2c3d...789e, output_index:0\",\n \"amount\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"suiSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"suiSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"gasFee\": {\n \"budget\": \"<string>\",\n \"price\": \"<string>\"\n }\n },\n \"tonMessage\": {\n \"from\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendCustom\": {\n \"from\": \"<string>\",\n \"payload\": \"aSDinaTvuI8gbWludGxpZnk=\"\n },\n \"tonSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"value\": \"<string>\",\n \"comment\": \"<string>\"\n },\n \"tonSendToken\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"mintAddress\": \"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs\",\n \"amount\": \"<string>\",\n \"comment\": \"ton send token comment\",\n \"decimals\": \"6\"\n },\n \"tronSendNative\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"value\": \"1000000000000000\"\n },\n \"tronSendTrc10\": {\n \"from\": \"<string>\",\n \"to\": \"TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7\",\n \"assetName\": \"ETH\",\n \"amount\": \"<string>\"\n },\n \"tronSendTrc20\": {\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"contractAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"<string>\",\n \"feeLimit\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"signingRequest": {
"uuid": "bb6f129f-bbe3-4d95-9f33-c32812e3e1c4",
"status": "STATUS_UNSPECIFIED",
"txHash": "3Eq21vXNB5s86c62bVuUfTerseghjkuUqRPBmGRJhyTA",
"vaultUuid": "9f5ee5fb-07f5-470c-a2ff-081e2d6d107a",
"failedReason": "failed reason",
"creationTimestamp": "1744274467154",
"notes": "<string>",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"simulation": "aSDinaTvuI8gbWludGxpZnk=",
"evmInputDataDecode": {
"function": "function_name(arg1_type arg1_value, arg2_type arg2_value, ...)",
"args": [
{
"name": "<string>",
"type": "<string>",
"data": "<string>"
}
]
},
"signatures": {
"signatures": [
{
"ecdsaSignature": {
"R": "<string>",
"S": "<string>",
"V": "<string>"
},
"eddsaSignature": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+Pw=="
}
]
},
"source": {
"type": "TYPE_UNSPECIFIED",
"website": "app.uniswap.org"
},
"aptosMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": {
"message": "message",
"nonce": "1",
"address": "<string>",
"application": "application",
"chainId": "137"
}
},
"aptosSendCoin": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendCustom": {
"chainId": "1",
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk=",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"aptosSendNative": {
"chainId": "1",
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"maxGasAmount": "<string>",
"gasUnitPrice": "<string>"
}
},
"btcSendNative": {
"from": "<string>",
"to": "<string>",
"amount": "1000000000000000",
"networkFee": "1"
},
"createWallet": {
"vaultUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"callbackClientSignerPublicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test",
"networkType": "NETWORK_TYPE_UNKNOWN",
"ref": "0x4321567890abcdef4321567890abcdef123456",
"name": "test wallet"
},
"evmMessage": {
"chainId": "137",
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"evmSendCustom": {
"chainId": "1",
"from": "<string>",
"value": "1000000000000000",
"to": "<string>",
"input": "qQWcuwAAAAAAAAAAAAAAAFqutgU/PpTJuaCfM2aUNefvG+rtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYloA=",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendErc20": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"tokenContractAddress": "<string>",
"amount": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"evmSendNative": {
"chainId": "137",
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"gasFee": {
"maxFee": "<string>",
"maxPriorityFee": "1500000000",
"gasLimit": "30000000000"
},
"nonce": "1"
},
"rawMessage": {
"from": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk=",
"ecdsaHashFunction": "ECDSA_HASH_FUNCTION_UNSPECIFIED"
},
"solanaMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"solanaSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"solanaSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"solanaSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"sonicSvmSendCustom": {
"from": "<string>",
"txBase64": [
"<string>"
],
"chainId": "101"
},
"sonicSvmSendNative": {
"from": "<string>",
"to": "<string>",
"value": "1000000000000000",
"chainId": "101"
},
"sonicSvmSendSplToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "8y5pTbJpGrUZGFN4M6ACvMbfnhXRrohRnrwannj3Noj",
"amount": "1000000000000000",
"chainId": "101",
"decimals": "6"
},
"stellarChangeTrust": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"memo": "stellar change trust"
},
"swapApproval": {},
"swapSend": {},
"batchPaymentApproval": {},
"batchPaymentSend": {},
"fiatPayment": {},
"aptosRegisterCoin": {},
"aptosOpenToken": {},
"vaultCreation": {},
"vaultSettingUpdate": {},
"rootKeyGeneration": {},
"rootKeyBackup": {},
"keyAccessGrant": {},
"stellarSendAsset": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"assetCode": "USDC",
"assetIssuer": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
"amount": "10.1",
"memo": "stellar send asset"
},
"stellarSendCustom": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"txBase64": "AQAAAAAAAAAAAAAAAAAAAAAA$999999999999AAAAACAAQABA1kYs4/+LFCaNxckNNsERMcgSwr19dR72mxW6j8qJpGv87LKehWtuOxHGbCNbhMcl4yGWqGCnDXiSuHbqRK1X00AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQICAAEMAgAAKCGAQAAAAAAAA=="
},
"stellarSendNative": {
"from": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"to": "GAAACAQDAQCQMBYIBEFAWDANBYHRAEISCMKBKFQXDAMRUGY4DUPB7JZX",
"value": "10.1",
"memo": "stellar send native"
},
"suiMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendCoin": {
"from": "<string>",
"to": "<string>",
"coinTag": "tx_hash:0a1b2c3d...789e, output_index:0",
"amount": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"suiSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"suiSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"gasFee": {
"budget": "<string>",
"price": "<string>"
}
},
"tonMessage": {
"from": "<string>",
"type": "TYPE_UNSPECIFIED",
"content": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendCustom": {
"from": "<string>",
"payload": "aSDinaTvuI8gbWludGxpZnk="
},
"tonSendNative": {
"from": "<string>",
"to": "<string>",
"value": "<string>",
"comment": "<string>"
},
"tonSendToken": {
"from": "<string>",
"to": "<string>",
"mintAddress": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"amount": "<string>",
"comment": "ton send token comment",
"decimals": "6"
},
"tronSendNative": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"value": "1000000000000000"
},
"tronSendTrc10": {
"from": "<string>",
"to": "TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7",
"assetName": "ETH",
"amount": "<string>"
},
"tronSendTrc20": {
"from": "<string>",
"to": "<string>",
"contractAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "<string>",
"feeLimit": "<string>"
}
},
"error": {
"message": "<string>",
"executeSigningRequestsErrorCode": "EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED",
"serviceErrorCode": "SERVICE_ERROR_CODE_UNSPECIFIED"
}
}Show Transaction types
Show Transaction types
| Type | Use case |
|---|---|
| EVM Send Native / ERC20 / Custom | Send ETH, ERC20 tokens, or custom EVM transactions |
| EVM Message | Sign messages (e.g., dApp authentication) |
| Tron / Solana / Sonic / Aptos / Sui / TON | Native tokens, custom transactions, or message signing |
| BTC Send Native | Send BTC |
| Raw Message | Sign raw bytes |
Authorizations
Your API token. Required for all API requests.
Body
The vault and wallet to create the request in, and exactly one payload field for the kind of request to create. The payload's from wallet must be active (a pending or archived wallet is rejected) and in a vault the API token can access. Amounts and gas values given as strings are non-negative integers (digits only) in the network's smallest unit, except Stellar amounts, which are decimals in whole units. A token transfer is rejected when the token cannot be resolved on the network or is marked as spam in the vault. A transaction or structured message request without callbackClientSignerPublicKey is shown in the MPCVault app. Creating a transaction request is rejected once the API token has 500 pending requests of that kind (messages included).
Transaction notes for the signing request.
UUID of the vault that owns the from wallet. Required when callbackClientSignerPublicKey is set (it must be the vault that owns the from wallet) and always for rawMessage. Otherwise it is ignored, except for evmMessage on a custom EVM network, where it selects the vault's custom network.
"9f5ee5fb-07f5-470c-a2ff-081e2d6d107a"
Public key of the API client signer that receives the callback: OpenSSH authorized_keys text of an ssh-ed25519 key. For a transaction or structured message, omit it, or send null, to show the request in the MPCVault app for manual signing; an empty string is rejected. Required for rawMessage. An API wallet can only be signed by an API client signer, so set it for requests on an API wallet; the create call does not check this. When set, it must be the public key of the API client signer configured for the vault that owns the from wallet (any other key is rejected), and the caller's IP address must be in that signer's IP whitelist. A misspelled field name is ignored and read as omitted: manual signing for a transaction or structured message, and a ClientSignerPublicKey is required rejection for rawMessage.
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmdWUo3e3/xUd0kbXCz4omzhqcYaPPYNTZ6ndqZdBAo test"
Whether MPCVault broadcasts the transaction after it is signed. Omitted or null means true; send false to receive the signed transaction and broadcast it yourself. Not supported for message types, rawMessage, or transactions on custom EVM networks. All other standard transactions on system chains are supported.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?