Last active
May 11, 2021 13:15
-
-
Save yuyasugano/5c9b1f5b7da71e6b527b73c2beeb8e10 to your computer and use it in GitHub Desktop.
import AVAX from X-Chain for P-Chain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST --data '{ | |
"jsonrpc": "2.0", | |
"method": "platform.importAVAX", | |
"params": { | |
"sourceChain": "X", | |
"to": "P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp", | |
"username": "testuser_jp01", | |
"password": "<your user password>" | |
}, | |
"id": 1 | |
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/P | |
{"jsonrpc":"2.0","result":{"txID":"22CrAAYGWR9r8CQ8j9Nb9MKQ3NQ7YguuYFVp7m9pQZWx11DURc","changeAddr":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp"},"id":1} | |
curl -X POST --data '{ | |
"jsonrpc": "2.0", | |
"method": "platform.importAVAX", | |
"params": { | |
"sourceChain": "X", | |
"to": "P-fuji16ng9sc5vyy99twvza8fg3xdl0262ryfsmcxcwp", | |
"username": "testuser_jp01", | |
"password": "<your user password>" | |
}, | |
"id": 2 | |
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/P | |
{"jsonrpc":"2.0","result":{"txID":"KrmV5oCULZL8Ri81aRckkhZ4nzcii19iwFXEiFoWoqcG4qMff","changeAddr":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp"},"id":2} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment