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

1
/ext/keystore
Copied!

Example Method

keystore.createUser

Create a new user with the specified username and password.
Your request will be rejected if the password is too weak. The password should be at least 8 characters and contain upper and lower case letters as well as numbers and symbols. It should not contain the word "Password".

Example Call

1
//Request
2
curl -X POST --data '{
3
"jsonrpc":"2.0",
4
"id" :1,
5
"method" :"keystore.createUser",
6
"params" :{
7
"username":"test",
8
"password":"Test1234!"
9
}
10
}' -H 'content-type:application/json;' https://ava-api.bwarelabs.com/<your-endpoint-id>/ext/keystore
11
12
//Response
13
{
14
"jsonrpc":"2.0",
15
"id" :1,
16
"result" :{
17
"success":true
18
}
19
}
Copied!
Last modified 4mo ago