Filecoin.MsigCreate
Filecoin.MsigCreate创建一个多签钱包。
参数
- requiredNumberOfSenders: number,
- approvingAddresses: string[],
- unlockDuration: ChainEpoch,
- initialBalance: string,
- senderAddressOfCreateMsg: string,
- gasPrice: string
返回值
Filecoin.MsigCreate调用返回对象的CID。
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"method":"Filecoin.MsgiCreate",
"params":[
42,
null,
10101,
"0",
"f01234",
"0"
],
"id":7878
}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
}
}