Wallet

RemoveAccount

Removes an imported account. IMPORTANT: This action is irreversible, and the account can only be recovered with its private key.

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

Parameters

PropType / Default
address
string

Returns

PropType / Default
returnValue
boolean

On this page