personal_sign

描述:对 Data 进行签名

parameter

数据类型 备注
String 需要签名的内容
String, 20 字节 账户地址
String 创建账户时的密码
"params": ["0xf86d82010e843b9aca00825208948009a7cbd192b3aed4adb983d5284552c16c74518853444835ec580000801ba03d1ef43163599c12bafb773849de8c81834bdda112167db1660e3d842f26b947a02f02871f7ef02e212130b86fe537affc464b7ecb5ef45a14db88aaf95591bf96",
"0xA6FB67336FA6678e63b82700eba6b6275B01B6DD",""]

return

数据类型 备注
String 签名后的的字符串

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "personal_sign",
  "params": [
    "0xf86d82010e843b9aca00825208948009a7cbd192b3aed4adb983d5284552c16c74518853444835ec580000801ba03d1ef43163599c12bafb773849de8c81834bdda112167db1660e3d842f26b947a02f02871f7ef02e212130b86fe537affc464b7ecb5ef45a14db88aaf95591bf96","0xA6FB67336FA6678e63b82700eba6b6275B01B6DD",""]
  }'

Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xa1e2f591686ea74bcd9f37a4a7f935f217905394998d70ac774dacf59b557ecb4999aee14ec583ada7e165b73cef1644b18caeadbc32d7322d23a774be9668231c"
}