/approveMpcRequestForSwagger
1 min
POST
http://1.1.1.1/approveMpcRequestForSwagger
request_idstring<p>id of send transaction request (get by using getBulletins)</p>
request_creator_idstringid of the send transaction creator
request_creator_namestring<p>id of the send transaction creator --DEPRECATED--</p>
request_typeinteger<p>int 0 mean TRANSACTION_REQUEST</p>
coin_typestringcoin type used in this operation
account_idintegerthe account used in this operation
outputsarraylist [{"Amount":"596","Destination":"3AXdTF1GxHVugRzrndCPSAQEBd2BqBhMde"}], List in all coins: [(destination_address:str,amount_to_transfer:int)]
in XRP it is optional to add destination tag [(destination_address:str, amount_to_transfer:int, destination_tag:int)]
in XLM it is optional to add Memo [(destination_address:str, amount_to_transfer:int, StellarMemo:class)]
tx_access_tokenstring<p>transaction request access token (get by using getBulletins)</p>
specific_from_addressstring<p>string : "3AXdTF1GxHVugRzrndCPSAQEBd2BqBhMde"</p>
max_priority_feeinteger<p>the fee we want to transfer - integer or object with values of gas limit, max priority fee, max</p>
<ul>
<li>storage (Backward Compatible)</li>
</ul>
gas_limitintegerthe gas limit we want to set
storage_limitinteger<p>the max storage for the transaction. Only relevant for XTZ.
257 for non existing address in blockchain and 0 for existing address, to be on the safe side you may always use 257</p>
is_eth1_to_eth2_conversionbooleanwhether the transaction type is sendConvertEth1ToEth2Transaction
data_to_sign_and_data_for_contract_and_bytes_to_sign_and_feeobjectdictionary containing parameters such as DataToSign, BytesToSign and DataForContract (Not all required)
bodyobject
200success
curl --request POST \
--url 'http://1.1.1.1/approveMpcRequestForSwagger?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_name=Matthew&request_type=integer&coin_type=BTC&account_id=1&outputs=100000000%2C36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=3%2Calice%40gk8.io&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&max_priority_fee=1000000&gas_limit=21000&storage_limit=257&is_eth1_to_eth2_conversion=false&data_to_sign_and_data_for_contract_and_bytes_to_sign_and_fee=%22{%5Cn%20%20%5C%22please_insert_your_object_data_inside_the_requestBody%5C%22%3A%20%5C%22your_object_here%5C%22%5Cn}%20%5Cn%22' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"data_to_sign": "0x67c1410ba1863095768ffe50b286360a744ff66d893379b027b8339f58ca525d",
"bytes_to_sign": "233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859",
"data_for_contract": "MyFunction"
}'- return - regular response if succeed else error