/approveMpcRequest
1 min
POST
http://1.1.1.1/approveMpcRequest
request_idstring<p>id of the sent transaction request (get by using getBulletins)</p>
request_creator_idstringid of the sent transaction creator
request_typeinteger<p>int 0 mean TRANSACTION_REQUEST</p>
coin_typestringcoin type used in this operation
account_idintegerthe account used in this operation
tostringThe address sent to in this operation
amountstringThe amount sent in this operation
tx_access_tokenstring<p>transaction request access token (get by using getBulletins)</p>
approvers_listarrayAn array of objects representing approvers with the following structure:
- `Action` (integer): The action associated with the approver.
- `User` (string): The email address of the approver.
:[{"Action":0,"User":"87654321"},{"Action":0,"User":"[email protected]"}]
specific_from_addressstringthe deposit address we sent from
data_for_contractstring<p>the contract data contract as Json - may contain a function name in "FunctionName" field</p>
<ul>
<li>and parameters types & values in "ParametersFieldsTypesAndValues field, or all the data parsed to bytes in "RawData" field.</li>
</ul>
bytes_to_signstring64 hexadecimal chars signed on without 0x for raw Stellar transactions
feeinteger<p>the fee transferred - integer or object with values of gas limit, max priority fee, max</p>
<ul>
<li>storage (Backward Compatible)</li>
</ul>
is_eth1_to_eth2_conversionbooleanwhether the transaction type is sendConvertEth1ToEth2Transaction
bodyobjectRequest data for an Ethereum (ETH) transaction.
200success
curl --request POST \
--url 'http://1.1.1.1/approveMpcRequest?request_id=9e2626a39663f285fdfae2fc0b329baf&request_creator_id=john%40gk8.io&request_type=integer&coin_type=BTC&account_id=1&to=36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm&amount=100000000&tx_access_token=a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021&approvers_list=array&specific_from_address=3Qnv1fyqhSaptkxJrC9ruNfpSCB1Srmkg3&bytes_to_sign=233c83369d1afc58bfca8a62bf227ed264b07810bfd3075113d4c5a587a4f859&fee=20&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"
}
}'#IMPORTANT - can not be executed from Swagger UI, please use approveMpcRequestForSwagger instead
- Approves an MPC request.
- This function sends an approval request for a specific MPC operation to a list of designated approvers.
- return - regular response if succeed else error
example - approveMpcRequest("9e2626a39663f285fdfae2fc0b329baf","[email protected]","bob bobson",1,"BTC",1,"36t2WWRbzuw8Ft5o8GXBUzCc3ZEF84eMjm", "100000000", ,"a8c2b4da17998863be8c6270e65be24dec8e79eaea616a54a89184ec43379021",[("0","[email protected]"),("3","[email protected]")])
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.