This document explains how to try the 2-way peg mechanism using your RSK node and a command line.
How to perform a peg-in.
Before starting: Read
lock requirements
0x
.How to perform a peg-out.
Before starting: Read
release requirements
RSKConvertedPrivateKey
, RSKNode
and RSKNodePort
and run this command:
$ curl -X POST --data '{"method":"personal_importRawKey", "params":["<RSKConvertedPrivateKey>", "<passPhraseToEncryptPrivKey>"], "jsonrpc":"2.0", "id":1}' http://<RSKNode>:<RSKNodePort>
RSKAddress
, passPhraseJustUsedToEncryptPrivKey
, RSKNode
and RSKNodePort
and run:
$ curl -X POST --data '{"method":"personal_unlockAccount", "params":["<RSKAddress>", "<passPhraseJustUsedToEncryptPrivKey>", ""], "jsonrpc":"2.0", "id":1}' http://<RSKNode>:<RSKNodePort>
RSKAddress
, valueToReleaseInWeis
, RSKNode
and RSKNodePort
and run:
$ curl -X POST --data '{"method":"eth_sendTransaction", "params":[{"from": "<RSKAddress>", "to": "0x0000000000000000000000000000000001000006", "gasPrice": 59240000, "gas": 44000, "value": <valueToReleaseInWeis>}], "jsonrpc":"2.0", "id":1}' http://<RSKNode>:<RSKNodePort>
Go to top