Skip to content

Instantly share code, notes, and snippets.

@hackfisher
Created April 9, 2020 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackfisher/6d8524e0cbd420da2215c8189eb003bc to your computer and use it in GitHub Desktop.
Save hackfisher/6d8524e0cbd420da2215c8189eb003bc to your computer and use it in GitHub Desktop.
Darwinia RPC Author Insert Key
curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": [
"babe",
"sr mnemonic",
"sr public"
]
}'
curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_insertKey",
"params": [
"gran",
"ed mnemonic",
"ed public"
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment