Filecoin.ClientRestartDataTransfer
Filecoin.ClientRestartDataTransfer将尝试重新启动于其他peer的指定数据传输。
参数
- transferId:要重启的传输ID
- otherPeer:对端节点的ID
- isInitiator:是否发起方
返回值
无
示例代码
请求:
curl -X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"method":"Filecoin.ClientRestartDataTransfer",
"params":[
3,
"12D3KooWGzxzKZYveHXtpG6AsrUJBcWxHBFS2HsEoGTxrMLvKXtf",
true
],
"id":7878
}' \
http://127.0.0.1:1234/rpc/v0
响应:
{
"id": 7878,
"jsonrpc": "2.0",
"result": {}
}