For the complete documentation index, see llms.txt. This page is also available as Markdown.

JSON-RPC 方法

Filecoin RPC

您可以在此处查看官方 Filecoin RPC 文档.

由于某些 RPC 消耗的计算资源,免费公共 RPC 仅支持上述 RPC。其余 JSON-RPC 将被拦截并返回 403 状态代码。

我们仅收集用户 IP 地址以进行速率限制。有关更多信息,请访问:https://www.chainup.com/privacyPolicy

示例 RPC

curl https://api.chainup.net/filecoin/mainnet/<YOUR_API_KEY> \
-X POST \
-H 'content-type: application/json' \
-H "CONSISTENT-HASH: true" \
--data '{"jsonrpc":"2.0","method":"Filecoin.Version","params":[],"id":1}'
const axios = require('axios');
//npm install axios if you don have the module installed

let options = {
url: "https://api.chainup.net/filecoin/mainnet/<YOUR_API_KEY>/rpc/v1",
method: "post",
headers:
{
"content-type": "application/json",
"CONSISTENT-HASH": "true"
},
body: JSON.stringify({"jsonrpc":"2.0","method":"Filecoin.Version","params":[],"id":1})
};

axios(options)
.then(response => {
console.log('Post successful: response:', response.data);
})
.catch(error => {
console.error('An error has occurred:', error);
});

Last updated

Was this helpful?