/stakeETH
1 min
POST
http://1.1.1.1/stakeETH
account_idintegerthe account that holds the address to send from
validator_public_key_hexstring<p>validator's public keys in hex (96 hex digits)</p>
bls_signature_hexstring<p>ETH2 Bonneh-Lynn-Shacham (BLS) signature in hex</p>
gas_pricestring<p>the gas_price we want to transfer with, in Wei</p>
gas_limitinteger<p>gas limit we want to transfer, in gas units - must be at least 21500</p>
max_priority_feeintegerthe max priority fee we want to tip the miner.
validate_transactionboolean<p>if this is true, the MPC wallet will access the node to check if this transaction is
likely to fail by running dry-run, and will block the transaction if it is</p>
bodyobjectRequest data for a transaction.
200success
curl --request POST \
--url 'http://1.1.1.1/stakeETH?account_id=1&validator_public_key_hex=0xa00cc6e72f9b325d6c896a2fa0bc4ca2e8893aedffc5e2a6690ca6626dd97830f7147ab617690d40a0b245b85f21cfe7&bls_signature_hex=0xb3411b20b150fbcd40ac01fc037925b95046387be9df15c24ade7a5df15edc5e8c717d4133648edf2bb66b9112829c76029f6410d8b240b7f18a3fe9b075f9f136aded9435aa92028acee19e81b073b4622a0f34da640c87dd6db5454d70cca7&gas_price=100000000000&gas_limit=90000&max_priority_fee=100000000&validate_transaction=False' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"AccountId": 1,
"BlsSignatureHex": "0xb3411b20b150fbcd40ac01fc037925b95046387be9df15c24ade7a5df15edc5e8c717d4133648edf2bb66b9112829c76029f6410d8b240b7f18a3fe9b075f9f136aded9435aa92028acee19e81b073b4622a0f34da640c87dd6db5454d70cca7",
"Fee": {
"GasLimit": 90000,
"GasPrice": "1000000000",
"MaxPriorityFee": "None"
},
"ValidatorPublicKeysHex": "0xa00cc6e72f9b325d6c896a2fa0bc4ca2e8893aedffc5e2a6690ca6626dd97830f7147ab617690d40a0b245b85f21cfe7",
"validateTransaction": "true",
"Meta": {
"FunctionName": "stakeETH",
"RandomData": "288cd49d4b8bf00e7d6114b78d5668d5581d6b953fafef779133caa844cd4229",
"Destination": "b9cb8afe52f1d52521cf2b62dfe12146156ad5328f83c62c20c7da81b263356a61340de745c858998544c041798b01c2f4fac31bebe52a19280a32cd57d6d374ea",
"Time": "2021-02-07T18:37:46.948Z",
"Source": "048b99461a70a49abe63fd585cb224177a22a92d2e9e4ddfbc0027887bee9d1843388f42a3eb2e740565e115ad8b7981abf59e3b03b771f4b063b53c517d7a9d99",
"AccessToken": "51311c84d2c8fd2fafbe56ceb1fb30a99d3417abfc55769577338ab286798087"
}
}'- stakeETH - Phase 2 of converting ETH1 to ETH2
- return - return the Approval request status, Amount to Transfer, Destination Addressexample:sendConvertEth1ToEth2Transaction(1,"0xa00cc6e72f9b325d6c896a2fa0bc4ca2e8893aedffc5e2a6690ca6626dd97830f7147ab617690d40a0b245b85f21cfe7","0xb3411b20b150fbcd40ac01fc037925b95046387be9df15c24ade7a5df15edc5e8c717d4133648edf2bb66b9112829c76029f6410d8b240b7f18a3fe9b075f9f136aded9435aa92028acee19e81b073b4622a0f34da640c87dd6db5454d70cca7","100000000000","90000",max_priority_fee-1000000000,true)