Wallet

Sign

sign

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

Parameters

PropType / Default
message
string
address
string
passphrase
string
isHex
boolean

Returns

PropType / Default
publicKey
string
signature
string

On this page