/approveMpcRequest
1 min
POST
/approveMpcRequest
request_idstring<p>ID of the send transaction request (get by using getBulletins).</p>
request_creator_idstringID of the sent transaction creator
request_typeinteger<p>Integer, 0 means TRANSACTION_REQUEST.</p>
coin_typestring<p>One of the coins (BTC, ETH, BCH...).</p>
account_idinteger<p>Integer, the account to send from.</p>
outputsarray<p>List of outputs in the format [{"Amount":"596","Destination":"3AXdTF1GxHVugRzrndCPSAQEBd2BqBhMde"}]. List in all coins [(destination_address</p><div></div>,amount_to_transfer<div></div>)]. In XRP, it is optional to add a destination tag [(destination_address<div></div>, amount_to_transfer<div></div>, destination_tag<div></div>)]. In XLM, it is optional to add Memo [(destination_address<div></div>, amount_to_transfer<div></div>, StellarMemo<div></div>)].<p></p>
tx_access_tokenstring<p>Transaction request access token (get by using getBulletins).</p>
approvers_listarray<p>List of approvers [{"Action"</p><div></div>,"User":"[email protected]"},{"Action"<div></div>,"User":"[email protected]"}].<p></p>
specific_from_addressstring<p>(Optional) String, specific address to send from.</p>
data_for_contractstring<p>(Optional) Dictionary containing contract data.</p>
bytes_to_signstring<p>(Optional) 64 hexadecimal chars to sign on without 0x for raw Stellar transactions.</p>
feeinteger<p>(Optional) Integer or dictionary with values of gas limit, max priority fee, max storage (backward compatible).</p>
max_priority_feeinteger<p>(Optional) Maximum priority fee.</p>
gas_limitinteger<p>(Optional) Gas limit.</p>
storage_limitinteger<p>(Optional) Storage limit.</p>
is_eth1_to_eth2_conversionboolean<p>(Optional) Whether the transaction type is stakeETH.</p>
data_to_signarray<p>(Optional) Dictionary containing data to sign.</p>
acceptstringGenerated from available response content types
bodyobject<p>Request data for an Ethereum (ETH) transaction.</p>
200success
curl --request POST \
--url '/approveMpcRequest?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=john%40gk8.io&request_type=integer&coin_type=BTC&account_id=1&outputs=array&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=array&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&bytes_to_sign=233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859&fee=20&max_priority_fee=None&gas_limit=None&storage_limit=None&is_eth1_to_eth2_conversion=False' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"FunctionData": {
"AccountId": 1,
"ApproversList": [
{
"User": "[email protected]"
}
],
"BytesToSign": "233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859",
"CoinType": "ETH",
"DataForContract": {
"functionName": "transfer"
},
"Fee": {
"GasLimit": 21000,
"GasPrice": "100000"
},
"Outputs": [
{
"AmountToTransfer": "6000",
"DestinationAddress": "0xE4Fd4d9190075de22826DdeC437594d27fb549Ab"
}
],
"RequestCreator": "[email protected]",
"RequestId": "9e2626a39663f285fdfae2fc0b329baf",
"SpecificFromAddress": "0x862842A56B5D5F30B7d519cCe683983F57499cE6",
"TxAccessToken": "a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021"
},
"Meta": {
"FunctionName": "approveMpcRequest",
"RandomData": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229",
"Destination": "b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea",
"Time": "2021-02-07T18:37:46.948Z",
"Source": "048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99",
"AccessToken": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087"
}
}'