Keystore API
Every node has a built-in keystore. Clients create users on the keystore, which act as identities to be used when interacting with blockchains. A keystore exists at the node level, so if you create a user on a node it exists only on that node. However, users may be imported and exported using this API.
You should only create a keystore user on a node that you operate, as the node operator has access to your plaintext password.
Path
/ext/keystore
Example Method
keystore.createUser
Create a new user with the specified username and password.
Example Call
//Request
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"keystore.createUser",
"params" :{
"username":"test",
"password":"Test1234!"
}
}' -H 'content-type:application/json;' https://ava-api.bwarelabs.com/<your-endpoint-id>/ext/keystore
//Response
{
"jsonrpc":"2.0",
"id" :1,
"result" :{
"success":true
}
}
Last updated
Was this helpful?