Wallet

CreateAccount

Generates a new account and store it.

const res = await fetch("http://127.0.0.1:8648", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
  jsonrpc: "2.0",
  method: "createAccount",
  params: ["passphrase"],
  id: 1
})
});
const data = await res.json();

Parameters

PropType / Default
passphrase
string

Returns

PropType / Default
address
string
publicKey
string
privateKey
string

On this page