Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions basics/assets/metamask-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ The process for configuring MetaMask to use Filecoin is fairly simple but has so

{% tabs %}
{% tab title="Mainnet" %}
<table><thead><tr><th width="159">Field</th><th>Value</th></tr></thead><tbody><tr><td>Network name</td><td><code>Filecoin</code></td></tr><tr><td>New RPC URL</td><td>Either:<br>- <code>https://api.node.glif.io/rpc/v1</code><br>- <code>https://filecoin.chainup.net/rpc/v1</code><br>- <code>https://rpc.ankr.com/filecoin</code></td></tr><tr><td>Chain ID</td><td><code>314</code></td></tr><tr><td>Currency symbol</td><td><code>FIL</code></td></tr></tbody></table>
<table><thead><tr><th width="159">Field</th><th>Value</th></tr></thead><tbody><tr><td>Network name</td><td><code>Filecoin</code></td></tr><tr><td>New RPC URL</td><td>Either:<br>- <code>https://filecoin.chain.love/rpc/v1</code><br>- <code>https://filecoin.chainup.net/rpc/v1</code><br>- <code>https://rpc.ankr.com/filecoin</code></td></tr><tr><td>Chain ID</td><td><code>314</code></td></tr><tr><td>Currency symbol</td><td><code>FIL</code></td></tr></tbody></table>
{% endtab %}

{% tab title="Calibration" %}
<table><thead><tr><th width="176">Field</th><th>Value</th></tr></thead><tbody><tr><td>Network name</td><td><code>Filecoin Calibration testnet</code></td></tr><tr><td>New RPC URL</td><td>Either:<br>- <code>https://api.calibration.node.glif.io/rpc/v1</code><br>- <code>https://filecoin-calibration.chainup.net/rpc/v1</code></td></tr><tr><td>Chain ID</td><td><code>314159</code></td></tr><tr><td>Currency symbol</td><td><code>tFIL</code></td></tr></tbody></table>
<table><thead><tr><th width="176">Field</th><th>Value</th></tr></thead><tbody><tr><td>Network name</td><td><code>Filecoin Calibration testnet</code></td></tr><tr><td>New RPC URL</td><td>Either:<br>- <code>https://calibration.filecoin.chain.love/rpc/v1</code><br>- <code>https://filecoin-calibration.chainup.net/rpc/v1</code></td></tr><tr><td>Chain ID</td><td><code>314159</code></td></tr><tr><td>Currency symbol</td><td><code>tFIL</code></td></tr></tbody></table>
{% endtab %}

{% tab title="Local testnet" %}
Expand Down
5 changes: 4 additions & 1 deletion basics/what-is-filecoin/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ Test networks, or testnets, are versions of the Filecoin network that simulate v

The [Calibration](../../networks/calibration/) testnet offers the closest simulation of the mainnet. It provides realistic sealing performance and hardware requirements due to the use of finalized proofs and parameters, allowing prospective storage providers to test their setups. Storage clients can also store and retrieve real data on this network, participating in deal-making workflows and testing storage/retrieval functionalities. Calibration testnet uses the same sector size as the mainnet.

- [Public endpoint](https://api.calibration.node.glif.io/rpc/v0)
- [Public endpoint](https://calibration.filecoin.chain.love/rpc/v0)
- [Blockchain explorer](https://calibration.filscan.io/)
- [Calibration Faucet - Chainsafe](https://faucet.calibnet.chainsafe-fil.io)
- [Calibration Faucet - Zondax](https://beryx.zondax.ch/faucet/)
- [Calibration Faucet - Forest Explorer](https://forest-explorer.chainsafe.dev/faucet/calibnet)
- [Calibration USDFC Faucet - Chainsafe](https://forest-explorer.chainsafe.dev/faucet/calibnet_usdfc)

More resources available on Calibration network:
{% @chainlove-widget/chainlove-compare url="https://widget.docs.chain.love/?network=filecoin&chain=calibnet" %}

[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/basics/what-is-filecoin/networks)
22 changes: 11 additions & 11 deletions builder-cookbook/dapps/chain-data-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ To explore further details about the available public RPC providers supporting F

#### **Ingredients**

Let's use Glif nodes as an example to demonstrate how to connect to a public Filecoin RPC node provider. Additionally, we will utilize `ethers.js` to establish the connection with the RPC nodes.
Let's use Chain.Love nodes as an example to demonstrate how to connect to a public Filecoin RPC node provider. Additionally, we will utilize `ethers.js` to establish the connection with the RPC nodes.

* [Glif nodes](https://hosting.glif.io/)
* [Chain.Love](https://filecoin.chain.love)
* [ethers.js](https://docs.ethers.org/v5/)

#### **Instructions**

We will use `ethers.js` to establish a connection with the public Filecoin node provided by Glif. The following code demonstrates connecting to the Filecoin Calibration testnet as an example.
We will use `ethers.js` to establish a connection with the public Filecoin node provided by Chain.Love. The following code demonstrates connecting to the Filecoin Calibration testnet as an example.

```javascript
import { ethers } from "ethers"

//The public Filecoin calibration URL
const filecoin_url = 'https://api.calibration.node.glif.io/rpc/v1'
const filecoin_url = 'https://calibration.filecoin.chain.love/rpc/v1'
const provider = new ethers.JsonRpcProvider(filecoin_url)

const blockNumber = await provider.getBlockNumber()
Expand All @@ -52,9 +52,9 @@ Since the Filecoin Virtual Machine (FVM) is EVM-compatible, we can use `ethers.j

#### **Ingredients**

We will also use `ethers.js` to connect to the public Glif node to listen to the smart contract events.
We will also use `ethers.js` to connect to the public Chain.Love node to listen to the smart contract events.

* [Glif Nodes](https://hosting.glif.io/)
* [Chain.Love](https://filecoin.chain.love)
* [ethers.js](https://docs.ethers.org/v5/)

#### **Instructions**
Expand All @@ -69,7 +69,7 @@ import { ethers } from "ethers"
const wFILAddress = "0xaC26a4Ab9cF2A8c5DBaB6fb4351ec0F4b07356c4" // wFIL Contract
var abi = ["event Transfer(address indexed from, address indexed to, uint amount)"]

const filecoin_url = 'https://api.calibration.node.glif.io/rpc/v1'
const filecoin_url = 'https://calibration.filecoin.chain.love/rpc/v1'
const provider = new ethers.providers.JsonRpcProvider(filecoin_url)

//listen to the Transfer events in the Token contract
Expand All @@ -95,22 +95,22 @@ We can also use filters to retrieve specific smart contract transactions from th

#### **Ingredients**

We will also use `ethers.js` to connect to the public Glif node to filter the smart contract events by providing conditions.
We will also use `ethers.js` to connect to the public Chain.Love node to filter the smart contract events by providing conditions.

* [Glif nodes](https://hosting.glif.io/)
* [Chain.Love](https://filecoin.chain.love)
* [ethers.js](https://docs.ethers.org/v5/)

#### **Instructions**

Here's an example of how you can connect to a Glif node on the calibration network, create a filter to list all wFIL token transfers from your address, and execute the filter to look back 2000 blocks to find the matched transaction list:
Here's an example of how you can connect to a Chain.Love node on the calibration network, create a filter to list all wFIL token transfers from your address, and execute the filter to look back 2000 blocks to find the matched transaction list:

```javascript
import { ethers } from "ethers"

const wFILAddress = "0xaC26a4Ab9cF2A8c5DBaB6fb4351ec0F4b07356c4" // wFIL Contract
var abi = ["event Transfer(address indexed from, address indexed to, uint amount)"]

const filecoin_url = 'https://api.calibration.node.glif.io/rpc/v1'
const filecoin_url = 'https://calibration.filecoin.chain.love/rpc/v1'
const provider = new ethers.providers.JsonRpcProvider(filecoin_url)

// Create a filter to list all token transfers from myAddress
Expand Down
8 changes: 4 additions & 4 deletions networks/calibration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ wget https://forest-archive.chainsafe.dev/latest/calibnet/

```bash
# Lite node (fastest startup)
FULLNODE_API_INFO=wss://wss.calibration.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://calibration.filecoin.chain.love/ws lotus daemon --lite

# Full node with snapshot import
lotus daemon --import-snapshot <calibnet-snapshot-file>

# Connect to RPC endpoint
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Filecoin.ChainHead","params":[],"id":1}' https://api.calibration.node.glif.io/rpc/v1
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Filecoin.ChainHead","params":[],"id":1}' https://calibration.filecoin.chain.love/rpc/v1
```

### Get Test FIL
Expand All @@ -48,8 +48,8 @@ Quick access to faucets:
### Essential Network Info

* **Chain ID**: `314159` (for MetaMask/wallets)
* **RPC**: `https://api.calibration.node.glif.io/rpc/v1`
* **WebSocket**: `wss://wss.calibration.node.glif.io/apigw/lotus/rpc/v1`
* **RPC**: `https://calibration.filecoin.chain.love/rpc/v1`
* **WebSocket**: `wss://calibration.filecoin.chain.love/ws/rpc/v1`
* **Minimum Power**: `32 GiB`

## About Calibration
Expand Down
15 changes: 9 additions & 6 deletions networks/calibration/rpcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ These endpoints are limited to [read-only Filecoin JSON RPC API calls](../../ref
* HTTPS: `https://filecoin-calibration.chainup.net/rpc/v1`
* [ChainupCloud documentation](https://docs.chainupcloud.com/blockchain-api/filecoin/public-apis)

## [Glif](https://api.calibration.node.glif.io)
## [Chain.Love](https://filecoin.chain.love/)

Please note that publicly available hosted endpoints **only guarantee 2000 of the latest blocks.**

* HTTPS: `https://api.calibration.node.glif.io/rpc/v1`
* WebSocket: `wss://wss.calibration.node.glif.io/apigw/lotus/rpc/v1`
* HTTPS: `https://calibration.filecoin.chain.love/rpc/v1`
* WebSocket: `wss://calibration.filecoin.chain.love/ws/rpc/v1`
* Lotus lite-node command:

```
FULLNODE_API_INFO=wss://wss.calibration.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://calibration.filecoin.chain.love/ws lotus daemon --lite
```

* When using a lite-node, omit `/rpc/v1` from Glif’s WebSocket address.
* [Glif documentation](https://hosting.glif.io/)
* When using a lite-node, omit `/rpc/v1` from Chain.Love’s WebSocket address.
* [Chain.Love documentation](https://chain-love.gitbook.io/chain-love-docs/blockchains/filecoin)


More RPCs available on the Calibration network:
{% @chainlove-widget/chainlove-compare url="https://widget.docs.chain.love/?network=filecoin&chain=calibnet&category=rpc" %}

[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill\_Page+URL=https://docs.filecoin.io/networks/calibration/rpcs)
9 changes: 6 additions & 3 deletions networks/mainnet/explorers.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you have access to a Filecoin node, you can send a JSON-RPC request to get bl
To get the head tipset:

```shell
curl --location --request POST 'https://api.node.glif.io/rpc/v1' \
curl --location --request POST 'https://filecoin.chain.love/rpc/v1' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
Expand All @@ -49,7 +49,7 @@ curl --location --request POST 'https://api.node.glif.io/rpc/v1' \
Print a block:

```shell
curl --location --request POST 'https://api.node.glif.io/rpc/v1' \
curl --location --request POST 'https://filecoin.chain.love/rpc/v1' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
Expand All @@ -62,7 +62,7 @@ curl --location --request POST 'https://api.node.glif.io/rpc/v1' \
Print message information:

```shell
curl --location --request POST 'https://api.node.glif.io/rpc/v1' \
curl --location --request POST 'https://filecoin.chain.love/rpc/v1' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
Expand All @@ -72,6 +72,9 @@ curl --location --request POST 'https://api.node.glif.io/rpc/v1' \
}' | jq
```

Curated list by Chain.Love of explorers available on Mainnet:
{% @chainlove-widget/chainlove-compare url="https://widget.docs.chain.love/?network=filecoin&chain=mainnet&category=explorer" %}



[Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill\_Page+URL=https://docs.filecoin.io/networks/mainnet/explorers)
8 changes: 4 additions & 4 deletions networks/mainnet/rpcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In order to check the current benchmarked performance of each of the below endpo

| Provider | HTTPS endpoint | WSS endpoint | Docs | API Support |
| ------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [Glif Nodes](https://api.node.glif.io/) | `https://api.node.glif.io/rpc/v1` | `wss://wss.node.glif.io/apigw/lotus/rpc/v1` | [Glif Nodes - Docs](https://api.node.glif.io/) | All Filecoin and Eth JSON RPC methods including MPoolPush |
| [Chain.Love](https://filecoin.chain.love) | `https://filecoin.chain.love/rpc/v1` | `wss://calibration.filecoin.chain.love/ws/rpc/v1` | [Chain.Love - Docs](https://chain-love.gitbook.io/chain-love-docs/blockchains/filecoin) | All Filecoin and Eth JSON RPC methods including MPoolPush |
| [Ankr](https://ankr.com/) | `https://rpc.ankr.com/filecoin` | By request at: https://www.ankr.com/rpc/filecoin | [Ankr Docs - Filecoin](https://www.ankr.com/docs/rpc-service/chains/chains-list/#filecoin) | All Filecoin and Eth JSON RPC methods including MPoolPush |
| [Chainup Cloud](https://cloud.chainup.com/) | `https://filecoin.chainup.net/rpc/v1` | `wss://filecoin.chainup.net/rpc/v1` | [Chainup Cloud Docs - Filecoin](https://docs.chainupcloud.com/blockchain-api/filecoin/public-apis) | |
| [NOWNodes](https://nownodes.io/) | `https://fil.nownodes.io` (Free for 1 month with signup) | | [NOWNodes - Docs](https://nownodes.gitbook.io/documentation) | |
Expand All @@ -25,13 +25,13 @@ In order to check the current benchmarked performance of each of the below endpo

## Additional Notes:

* Glif Nodes offers a [Lotus Lite node](https://docs.filecoin.io/nodes/lite-nodes/spin-up-a-lite-node) endpoint with the following command:
* Chain.Love offers a [Lotus Lite node](https://docs.filecoin.io/nodes/lite-nodes/spin-up-a-lite-node) endpoint with the following command:

```shell
FULLNODE_API_INFO=wss://wss.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://filecoin.chain.love/ws lotus daemon --lite
```

When using a Lotus Lite node, omit `/rpc/v1` from Glif’s WebSocket address.
When using a Lotus Lite node, omit `/rpc/v1` from Chain.Love’s WebSocket address.

A Lotus Lite node is a stripped down version of a Lotus full-node capable of running on lower-end hardware. It also allows for local signing for storage deals without a full Lotus node.

Expand Down
8 changes: 4 additions & 4 deletions nodes/lite-nodes/spin-up-a-lite-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Let's start the lite-node by connecting to a remote full-node. We can use the pu
1. Create an environment variable called `FULLNODE_API_INFO` and set it to the WebSockets address of the node you want to connect to. At the same time, start the Lotus daemon with the `--lite` tag:

```shell
FULLNODE_API_INFO=wss://wss.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://filecoin.chain.love/ws lotus daemon --lite
```

This will output something like:
Expand All @@ -231,7 +231,7 @@ Let's start the lite-node by connecting to a remote full-node. We can use the pu
1. Create an environment variable called `FULLNODE_API_INFO` and set it to the WebSockets address of the node you want to connect to. At the same time, start the Lotus daemon with the `--lite` tag:

```shell
FULLNODE_API_INFO=wss://wss.calibration.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://calibration.filecoin.chain.love/ws lotus daemon --lite
```

This will output something like:
Expand Down Expand Up @@ -270,7 +270,7 @@ To send JSON-RPC requests to our lite-node, we need to expose the API.
3. In the same window, restart the lite-node:

```shell
FULLNODE_API_INFO=wss://wss.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://filecoin.chain.love/ws lotus daemon --lite
```

This will output something like:
Expand Down Expand Up @@ -304,7 +304,7 @@ To send JSON-RPC requests to our lite-node, we need to expose the API.
3. In the same window, restart the lite-node:

```shell
FULLNODE_API_INFO=wss://wss.calibration.node.glif.io/apigw/lotus lotus daemon --lite
FULLNODE_API_INFO=wss://calibration.filecoin.chain.love/ws lotus daemon --lite
```

This will output something like:
Expand Down
4 changes: 2 additions & 2 deletions reference/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Check out the [documentation website](https://filecoin.hugomrdias.dev/) for more

> NOTE: making deep calls into the chain’s history may take some time to return and it may be more efficient to use a chain database (e.g. used by block explorers) that stores the chain’s history and is optimized for queries.

* [GLIF nodes](https://lotus.filecoin.io/lotus/developers/glif-nodes/) - A hosted endpoint to Filecoin mainnet and testnet. Note: as of Q1 2023, Infura no longer supports Filecoin.
* The GLIF endpoint supports read-only calls and `MPoolPush()` for sending signed transactions to the network (which can be signed using the [Message signing tools](https://docs.filecoin.io/reference/general/overview/#message-signing-tools)).
* [Chain.Love (Glif nodes)](https://lotus.filecoin.io/lotus/developers/glif-nodes/) - A hosted endpoint to Filecoin mainnet and testnet. Note: as of Q1 2023, Infura no longer supports Filecoin.
* The Chain.Love endpoint supports read-only calls and `MPoolPush()` for sending signed transactions to the network (which can be signed using the [Message signing tools](https://docs.filecoin.io/reference/general/overview/#message-signing-tools)).
* [**Lotus JSON-RPC API**](https://lotus.filecoin.io/lotus/get-started/what-is-lotus/) - Lotus offers the full feature set of its capabilities through API.
* [lotus API Postman sample](https://documenter.getpostman.com/view/4872192/SWLh5mUd?version=latest) - (shows sample wallet calls only)

Expand Down
8 changes: 4 additions & 4 deletions reference/json-rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ curl --location --request POST '<NODE_ADDRESS>' \

## Step-by-step example

1. In a terminal window, use Curl to request the current chain head from a public [Glif](https://glif.io/en) node.\\
1. In a terminal window, use Curl to request the current chain head from a public [Chain.Love](https://filecoin.chain.love) node.\\

* ```shell
curl -X POST 'https://api.node.glif.io' \
curl -X POST 'https://filecoin.chain.love' \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"Filecoin.ChainHead","params":[]}'
```
Expand All @@ -42,7 +42,7 @@ curl --location --request POST '<NODE_ADDRESS>' \
```

1. ```shell
curl -X POST 'https://api.node.glif.io' \
curl -X POST 'https://filecoin.chain.love' \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"Filecoin.ChainHead","params":[]}' \
| jq
Expand Down Expand Up @@ -83,7 +83,7 @@ Each node implementation has different ways to generate and manage authenticatio
* [Lotus](https://lotus.filecoin.io)
* [Venus](https://venus.filecoin.io)

If you are using a node provider service like [Glif](https://glif.io/en), take a look at your providers documentation to find out how to manage authentication tokens.
If you are using a node provider service like [Chain.Love](https://filecoin.chain.love/rpc), take a look at your providers documentation to find out how to manage authentication tokens.



Expand Down
Loading
Loading