Filecoin.AuthNew
Filecoin.AuthNew为指定的权限列表生成一个新的授权令牌。
参数
- permissions:权限列表,数组
返回值
Filecoin.AuthNew调用返回生成的授权令牌,类型为字符串。
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"Filecoin.AuthNew","params":[[]],"id":7878}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": "Ynl0ZSBhcnJheQ=="
}