Filecoin.WalletValidateAddress
Filecoin.WalletValidateAddress验证指定字符串符合地址编解码规范。
参数
- address: string
返回值
Filecoin.WalletValidateAddress调用返回编码后的Address对象。
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"method":"Filecoin.WalletValidateAddress",
"params":[
"string value"
],
"id":7878
}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": "f01234"
}