# TRANSFER example:
request(
"POST",
"/v1/custody/mpc/create_transaction/",
{
"coin": "VET",
"from_address": "0xe0cc496b3d9b0f8019b678066b9db81261d827bc",
"to_address": "0x51d91dd9d7af32fe3aebf7e257c74d24baffa692",
"amount": 1,
"request_id": "1671699717647"
},
api_key, api_secret, host
)
# UTXO example:
request(
"POST",
"/v1/custody/mpc/create_transaction/",
{
'coin': 'XTN',
'request_id': 'mpc_api_1674896802004',
'to_address': '2N4J1WajwKZKpRtzzUmaW9B5GEqkppqdVY9',
'amount': '400003',
'extra_parameters': '{"input_selection":
{"inputs_to_spend":
[{"tx_hash": "e7ddfa61cc2a78e1661da44b10cdc862256573d2dc0485dc989fb7045ed9032c", "vout_n": 1},
{"tx_hash": "eabaee1f1a196b087e78303c6eaaeb9d1166de5f8d85f4ef7872b88bfcd60914", "vout_n": 2}]
}
}'
}
api_key, api_secret, host
# Web3 example:
request(
"POST",
"/v1/custody/mpc/create_transaction/",
{
'coin': 'GETH',
'request_id': 'mpc_api_1674896802004',
'from_address': '0x7c524e7c37b9b8279aaf9b10940a8368540f2aec',
'to_address': '0x7c524e7c37b9b8279aaf9b10940a8368540f2aec',
'amount': '100000000',
'gas_price':2613036
'gas_limit':21000
'extra_parameters':'{"calldata": "0xa8059cbb000000000000000000000000971948873f869e4517311b190d7eb31e30eba0ef000000000000000000000000000000000000000000000000002386f26fc10000"}'
}
api_key, api_secret, host