Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

keypair_create #14

Open
caetanix opened this issue May 17, 2021 · 1 comment
Open

keypair_create #14

caetanix opened this issue May 17, 2021 · 1 comment

Comments

@caetanix
Copy link

when i run some rpc calls give this error... this an example

{
"jsonrpc": "2.0",
"method": "keypair_create",
"params": [12],
"id": 1
}

{
"error": {
"code": -999,
"message": "Not enough parameters provided"
},
"id": 1
}

@arjanz
Copy link
Member

arjanz commented May 26, 2021

There is another parameter required, specifying the crypto type (1 = SR25519 (default), 2 = ED25519)

So the body would be something like:

{"jsonrpc":"2.0","method":"keypair_create","params":[12,1],"id":6}

For use-case examples I would recommend the example GUI: https://github.com/polkascan/substrate-interface-gui/

Or the repos that contains all the elements: https://github.com/polkascan/substrate-interface

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants