Filecoin.WalletSign
Filecoin.WalletSign 使用指定的地址签名字节码流。
参数
- address:string
- data:string|ArrayBuffer
返回值
Filecoin.WalletSign调用返回签名对象。
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"method":"Filecoin.WalletSign",
"params":[
"f01234",
"Ynl0ZSBhcnJheQ=="
],
"id":7878
}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": {
"Type": 2,
"Data": "Ynl0ZSBhcnJheQ=="
}
}