No Filecoin support
Chainstack deprecated support for Filecoin nodes. This page here is for legacy and in case you may find it useful.MetaMask
You can set your MetaMask to interact through your Filecoin nodes.- Open your MetaMask and click the network selector.
- In the network selector, click Custom RPC.
- In the New RPC URL field, enter the node endpoint.
- In the Chain ID field, enter the ID of the network:
- Calibration Testnet:
314159
- Calibration Testnet:
- Click Save.
Remix IDE
To make Remix IDE interact with the network through a Filecoin node:- Get MetaMask and set it to interact through a Filecoin node. See Interacting through MetaMask.
- In Remix IDE, navigate to the Deploy tab. Select Injected Provider - MetaMask in Deploy & run transactions.
web3.js
Build DApps using web3.js and Filecoin nodes.- Install web3.js.
- Connect over HTTP or WebSocket.
HTTP
Use theHttpProvider
object to connect to your node HTTPS endpoint and get the latest block number:
WebSocket
Use theWebsocketProvider
object to connect to your node WSS endpoint and get the latest block number:
web3.py
Build DApps using web3.py and Filecoin nodes.- Install web3.py.
- Connect over HTTP or WebSocket. See also EVM node connection: HTTP vs WebSocket.
HTTP
Use theHTTPProvider
to connect to your node endpoint and get the latest block number.
- FILECOIN_ENDPOINT — your node HTTPS endpoint
- HOSTNAME — your node HTTPS endpoint hostname
WebSocket
Use theWebsocketProvider
object to connect to your node WSS endpoint and get the latest block number.
- FILECOIN_ENDPOINT — your node WSS endpoint
- HOSTNAME — your node WSS endpoint hostname
ethers.js
Build DApps using ethers.js and Filecoin nodes.- Install ethers.js.
- Connect over HTTP or WebSocket. See also EVM node connection: HTTP vs WebSocket.
HTTP
Use theJsonRpcProvider
object to connect to your node endpoint and get the latest block number:
- FILECOIN_ENDPOINT — your node HTTPS endpoint
- NETWORK_ID — Filecoin network ID:
- Calibration Testnet:
314159
- Calibration Testnet:
WebSocket
Use theWebSocketProvider
object to connect to your node WSS endpoint and get the latest block number:
- FILECOIN_ENDPOINT — your node WSS endpoint
- NETWORK_ID — Filecoin network ID:
- Calibration Testnet:
314159
- Calibration Testnet: