Skip to content

Commit

Permalink
fix: public RPCs on network page, guides and examples (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshpinto authored Jul 17, 2024
2 parents 9144d1b + 5cfb220 commit 28da7b0
Show file tree
Hide file tree
Showing 49 changed files with 66 additions and 56 deletions.
20 changes: 12 additions & 8 deletions docs/network/0-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ Configuration for all Flare networks, along with public and private RPCs, blockc
| Gas token | FLR |
| Gas token decimals | 18 |
| Blockchain Explorers | [Flarescan](https://flarescan.com), [Flare Explorer](https://flare-explorer.flare.network) |
| Public RPCs | [Ankr](https://rpc.ankr.com/flare), [Thirdweb](https://14.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/14) |
| Private RPCs | [Ankr](https://rpc.ankr.com/flare), [API Portal](https://api-portal.flare.network/apis/flare-api) |
| Public RPCs | `https://flare-api.flare.network/ext/C/rpc` <br></br> `wss://flare-api.flare.network/ext/bc/C/ws` |
| Private RPCs | [API Portal](https://api-portal.flare.network/apis/flare-api) |
| Community RPCs | [Ankr](https://rpc.ankr.com/flare), [Thirdweb](https://14.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/14) |
| Indexers | [SubQuery](https://github.com/subquery/flare-subql-starter/tree/main/Flare/flare-starter), [Subsquid](https://docs.subsquid.io/subsquid-network/reference/evm-networks/) |
| OAuth Login | [Web3Auth](https://web3auth.io/docs/connect-blockchain/evm/flare) |
| Account Abstraction | [Etherspot Prime SDK](https://etherspot.fyi/prime-sdk/intro) |
Expand All @@ -55,8 +56,9 @@ Configuration for all Flare networks, along with public and private RPCs, blockc
| Gas token | C2FLR |
| Gas token decimals | 18 |
| Blockchain Explorers | [Coston2 Flarescan](https://coston2.testnet.flarescan.com), [Coston2 Explorer](https://coston2-explorer.flare.network) |
| Public RPCs | [Ankr](https://rpc.ankr.com/flare_coston2), [Thirdweb](https://114.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/114) |
| Private RPCs | [Ankr](https://rpc.ankr.com/flare_coston2), [API Portal](https://api-portal.flare.network/apis/coston2-api) |
| Public RPCs | `https://coston2-api.flare.network/ext/C/rpc` <br></br> `wss://coston2-api.flare.network/ext/bc/C/ws` |
| Private RPCs | [API Portal](https://api-portal.flare.network/apis/coston2-api) |
| Community RPCs | [Ankr](https://rpc.ankr.com/flare_coston2), [Thirdweb](https://114.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/114) |
| Indexers | - |
| OAuth Login | [Web3Auth](https://web3auth.io/docs/connect-blockchain/evm/flare) |
| Account Abstraction | [Etherspot Prime SDK](https://etherspot.fyi/prime-sdk/intro) |
Expand All @@ -71,8 +73,9 @@ Configuration for all Flare networks, along with public and private RPCs, blockc
| Gas token | SGB |
| Gas token decimals | 18 |
| Blockchain Explorers | [Songbird Flarescan](https://songbird.flarescan.com), [Songbird Explorer](https://songbird-explorer.flare.network) |
| Public RPCs | [Ankr](https://rpc.ankr.com/flare_songbird), [Thirdweb](https://19.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/19) |
| Private RPCs | [Ankr](https://rpc.ankr.com/flare_songbird), [API Portal](https://api-portal.flare.network/apis/songbird-api) |
| Public RPCs | `https://songbird-api.flare.network/ext/C/rpc` <br></br> `wss://songbird-api.flare.network/ext/bc/C/ws` |
| Private RPCs | [API Portal](https://api-portal.flare.network/apis/songbird-api) |
| Community RPCs | [Ankr](https://rpc.ankr.com/flare_songbird), [Thirdweb](https://19.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/19) |
| Indexers | [SubQuery](https://github.com/subquery/flare-subql-starter/tree/main/Flare/songbird-starter), [Subsquid](https://docs.subsquid.io/subsquid-network/reference/evm-networks/) |
| OAuth Login | [Web3Auth](https://web3auth.io/docs/connect-blockchain/evm/songbird/) |
| Account Abstraction | - |
Expand All @@ -87,8 +90,9 @@ Configuration for all Flare networks, along with public and private RPCs, blockc
| Gas token | CFLR |
| Gas token decimals | 18 |
| Blockchain Explorers | [Coston Flarescan](https://coston.testnet.flarescan.com), [Coston Explorer](https://coston-explorer.flare.network) |
| Public RPCs | [Ankr](https://rpc.ankr.com/flare_coston), [Thirdweb](https://16.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/16) |
| Private RPCs | [Ankr](https://rpc.ankr.com/flare_coston), [API Portal](https://api-portal.flare.network/apis/coston-api) |
| Public RPCs | `https://coston-api.flare.network/ext/C/rpc` <br></br> `wss://coston-api.flare.network/ext/bc/C/ws` |
| Private RPCs | [API Portal](https://api-portal.flare.network/apis/coston-api) |
| Community RPCs | [Ankr](https://rpc.ankr.com/flare_coston), [Thirdweb](https://16.rpc.thirdweb.com), [ChainList<IconExternalLink/>](https://ChainList.org/chain/16) |
| Indexers | - |
| OAuth Login | [Web3Auth](https://web3auth.io/docs/connect-blockchain/evm/songbird/) |
| Account Abstraction | - |
Expand Down
2 changes: 1 addition & 1 deletion docs/network/guides/flare-for-go-developers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ developer-hub-go/

### Usage

You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the [Ankr RPC](https://rpc.ankr.com/flare).
You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the Public RPC.

<Tabs groupId="network">
<TabItem value="coston2" label="Flare Testnet Coston2" default>
Expand Down
2 changes: 1 addition & 1 deletion docs/network/guides/flare-for-javascript-developers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Install web3.js using either `npm` or `yarn`:

### Usage

You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the [Ankr RPC](https://rpc.ankr.com/flare).
You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the Public RPC.

<Tabs groupId="network">
<TabItem value="coston2" label="Flare Testnet Coston2" default>
Expand Down
2 changes: 1 addition & 1 deletion docs/network/guides/flare-for-python-developers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ All examples in this guide are available on the [developer-hub repository](https

### Usage

You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the [Ankr RPC](https://rpc.ankr.com/flare).
You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the Public RPC.

<Tabs groupId="network">
<TabItem value="coston2" label="Flare Testnet Coston2" default>
Expand Down
2 changes: 1 addition & 1 deletion docs/network/guides/flare-for-rust-developers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }

### Usage

You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the [Ankr RPC](https://rpc.ankr.com/flare).
You need to connect to testnet or mainnet via an RPC, any RPC listed on the [Network Configuration](/network/overview#configuration) page will work. For this guide, you can use the Public RPC.

<Tabs groupId="network">
<TabItem value="coston2" label="Flare Testnet Coston2" default>
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/coston2/chain_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func ChainId() {
cl, err := ethclient.Dial("https://rpc.ankr.com/flare_coston2")
cl, err := ethclient.Dial("https://coston2-api.flare.network/ext/C/rpc")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/coston2/deploy_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
const key = ``

func DeployContract() {
conn, err := ethclient.Dial("https://rpc.ankr.com/flare_coston2")
conn, err := ethclient.Dial("https://coston2-api.flare.network/ext/C/rpc")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/coston2/make_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func MakeQuery() {
client, err := ethclient.Dial("https://rpc.ankr.com/flare_coston2")
client, err := ethclient.Dial("https://coston2-api.flare.network/ext/C/rpc")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/coston2/secure_random.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func SecureRandom() {
// Relay address where the secure RNG is served (Flare Testnet Coston2)
// See https://dev.flare.network/network/solidity-reference
address := common.HexToAddress("0x5CdF9eAF3EB8b44fB696984a1420B56A7575D250")
rpcUrl := "https://rpc.ankr.com/flare_coston2"
rpcUrl := "https://coston2-api.flare.network/ext/C/rpc"
// Connect to an RPC node
client, _ := ethclient.Dial(rpcUrl)
// Set up contract instance
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/coston2/volatility_incentive.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func MakeVolatilityIncentive() {
// See https://dev.flare.network/ftso/solidity-reference
incentiveAddress := common.HexToAddress("0x003e9bD18f73e0B25BED0DC8382Bde6aa999525c")
// Connect to an RPC node
client, _ := ethclient.Dial("https://rpc.ankr.com/flare_coston2")
client, _ := ethclient.Dial("https://coston2-api.flare.network/ext/C/rpc")
// Set up contract instance
incentive, _ := NewFastUpdatesIncentiveManager(incentiveAddress, client)
// Get the current sample size, sample size increase price, precision, and scale
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/flare/chain_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func ChainId() {
cl, err := ethclient.Dial("https://rpc.ankr.com/flare")
cl, err := ethclient.Dial("https://flare-api.flare.network/ext/C/rpc")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/flare/deploy_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
const key = ``

func DeployContract() {
conn, err := ethclient.Dial("https://rpc.ankr.com/flare")
conn, err := ethclient.Dial("https://flare-api.flare.network/ext/C/rpc")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/flare/make_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func MakeQuery() {
client, err := ethclient.Dial("https://rpc.ankr.com/flare")
client, err := ethclient.Dial("https://flare-api.flare.network/ext/C/rpc")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/ftsov2_config_coston2.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func FtsoV2Config() {
// FastUpdatesConfiguration address (Flare Testnet Coston2)
// See https://dev.flare.network/ftso/solidity-reference
address := common.HexToAddress("0xE7d1D5D58cAE01a82b84989A931999Cb34A86B14")
rpcUrl := "https://rpc.ankr.com/flare_coston2"
rpcUrl := "https://coston2-api.flare.network/ext/C/rpc"
// Connect to an RPC node
client, _ := ethclient.Dial(rpcUrl)
// Set up contract instance
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-go/ftsov2_consumer_coston2.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func FtsoV2Consumer() {
// FastUpdater address (Flare Testnet Coston2)
// See https://dev.flare.network/ftso/solidity-reference
ftsoAddress := common.HexToAddress("0x58fb598EC6DB6901aA6F26a9A2087E9274128E59")
rpcUrl := "https://rpc.ankr.com/flare_coston2"
rpcUrl := "https://coston2-api.flare.network/ext/C/rpc"
// Connect to an RPC node
client, _ := ethclient.Dial(rpcUrl)
// Set up contract instance
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-javascript/chain_id_coston2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Web3 } from "web3";

const web3 = new Web3("https://rpc.ankr.com/flare_coston2");
const web3 = new Web3("https://coston2-api.flare.network/ext/C/rpc");
web3.eth.getChainId().then(console.log);
// 114
2 changes: 1 addition & 1 deletion examples/developer-hub-javascript/chain_id_flare.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Web3 } from "web3";

const web3 = new Web3("https://rpc.ankr.com/flare");
const web3 = new Web3("https://flare-api.flare.network/ext/C/rpc");
web3.eth.getChainId().then(console.log);
// 14
4 changes: 3 additions & 1 deletion examples/developer-hub-javascript/deploy_contract_coston2.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Web3 } from "web3";
import fs from "fs";

const web3 = new Web3(
new Web3.providers.HttpProvider("https://rpc.ankr.com/flare_coston2"),
new Web3.providers.HttpProvider(
"https://coston2-api.flare.network/ext/C/rpc",
),
);

const bytecode = fs.readFileSync("./build/FtsoV2FeedConsumer.bin", "utf8");
Expand Down
2 changes: 1 addition & 1 deletion examples/developer-hub-javascript/deploy_contract_flare.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Web3 } from "web3";
import fs from "fs";

const web3 = new Web3(
new Web3.providers.HttpProvider("https://rpc.ankr.com/flare"),
new Web3.providers.HttpProvider("https://flare-api.flare.network/ext/C/rpc"),
);

const bytecode = fs.readFileSync("./build/FtsoV2FeedConsumer.bin", "utf8");
Expand Down
Loading

0 comments on commit 28da7b0

Please sign in to comment.