you_sign

描述:对 Data 进行签名。

注意:进行签名的地址需要先解锁。

parameter

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

return

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

example

Request:

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "you_sign",
    "params": [
        "0xA6FB67336FA6678e63b82700eba6b6275B01B6DD",
        "0xf86d82010e843b9aca00825208948009a7cbd192b3aed4adb983d5284552c16c74518853444835ec580000801ba03d1ef43163599c12bafb773849de8c81834bdda112167db1660e3d842f26b947a02f02871f7ef02e212130b86fe537affc464b7ecb5ef45a14db88aaf95591bf96"
    ]
}

Response:

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