Skip to content

Manual Key Insertion Script

Marko Petrlić edited this page Mar 5, 2024 · 1 revision
seed="0x4950ed790df3758f7b7d0c8bedd40a1a66965e86c8795d2d4ccb9af03b0a6a81"  // SR Controller Secret seed
edkey="0xaa2b151a5654243384917983c0e6c33a7a6b78214faa1679a1497155d5e838e4" // ED Controller Public key (hex)
srkey="0x2466f10a25d884fade35ee88bc35827464ae0fb4fbfc70b1734b99504a566378" // SR Controller Public key (hex)

curl --trace-ascii here.txt http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"author_insertKey\",\"params\": [\"gran\",\"$seed\",\"$edkey\"]}"
curl --trace-ascii here.txt http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"author_insertKey\",\"params\": [\"babe\",\"$seed\",\"$srkey\"]}"
curl --trace-ascii here.txt http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"author_insertKey\",\"params\": [\"imon\",\"$seed\",\"$srkey\"]}"
curl --trace-ascii here.txt http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"author_insertKey\",\"params\": [\"audi\",\"$seed\",\"$srkey\"]}"