Sitelet https://github.com/SharkHand3/examples/commit/2195e23d57867ffc813b71f77e4fe2f007c8ef8e
Skip to content

Commit 2195e23

Browse files
authored
chore: use ithaca rpc (alloy-rs#210)
1 parent a2c02c7 commit 2195e23

21 files changed

Lines changed: 21 additions & 21 deletions

‎examples/contracts/examples/interact_with_abi.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sol!(
1515
async fn main() -> Result<()> {
1616
// Spin up a forked Anvil node.
1717
// Ensure `anvil` is available in $PATH.
18-
let rpc_url = "https://eth.merkle.io";
18+
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc";
1919
let provider =
2020
ProviderBuilder::new().on_anvil_with_wallet_and_config(|anvil| anvil.fork(rpc_url))?;
2121

‎examples/layers/examples/fallback_layer.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn main() -> Result<()> {
2323

2424
// Define your list of transports to use
2525
let transports = vec![
26-
Http::new(Url::parse("https://eth.merkle.io")?),
26+
Http::new(Url::parse("https://reth-ethereum.ithaca.xyz/rpc")?),
2727
Http::new(Url::parse("https://eth.llamarpc.com")?),
2828
Http::new(Url::parse("https://ethereum-rpc.publicnode.com")?),
2929
];

‎examples/node-bindings/examples/anvil_fork_instance.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use eyre::Result;
1010
async fn main() -> Result<()> {
1111
// Spin up a forked Anvil node.
1212
// Ensure `anvil` is available in $PATH.
13-
let rpc_url = "https://eth.merkle.io";
13+
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc";
1414
let anvil = Anvil::new().fork(rpc_url).try_spawn()?;
1515
let provider = ProviderBuilder::new().on_http(anvil.endpoint_url());
1616

‎examples/node-bindings/examples/anvil_fork_provider.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use eyre::Result;
77
async fn main() -> Result<()> {
88
// Spin up a forked Anvil node.
99
// Ensure `anvil` is available in $PATH.
10-
let rpc_url = "https://eth.merkle.io";
10+
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc";
1111
let provider = ProviderBuilder::new().on_anvil_with_config(|anvil| anvil.fork(rpc_url));
1212

1313
// Get node info using the Anvil API.

‎examples/node-bindings/examples/anvil_set_storage_at.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static WETH_ADDR: Address = address!("C02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2")
2222
async fn main() -> Result<()> {
2323
// Spin up a forked Anvil node.
2424
// Ensure `anvil` is available in $PATH.
25-
let rpc_url = "https://eth.merkle.io";
25+
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc";
2626
let provider = ProviderBuilder::new().on_anvil_with_config(|anvil| anvil.fork(rpc_url));
2727

2828
// Create an instance of the WETH contract.

‎examples/providers/examples/batch_rpc.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async fn main() -> Result<()> {
1313
// Ensure `anvil` is available in $PATH.
1414
let anvil = Anvil::new().spawn();
1515

16-
// Swap this out with a RPC_URL provider that supports JSON-RPC batch requests. e.g. https://eth.merkle.io
16+
// Swap this out with a RPC_URL provider that supports JSON-RPC batch requests. e.g. https://reth-ethereum.ithaca.xyz/rpc
1717
let rpc_url = anvil.endpoint_url();
1818

1919
// Create a HTTP transport.

‎examples/providers/examples/http.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use eyre::Result;
66
#[tokio::main]
77
async fn main() -> Result<()> {
88
// Create a provider with the HTTP transport using the `reqwest` crate.
9-
let rpc_url = "https://eth.merkle.io".parse()?;
9+
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc".parse()?;
1010
let provider = ProviderBuilder::new().on_http(rpc_url);
1111

1212
// Get latest block number.

‎examples/providers/examples/http_with_auth.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async fn main() -> Result<()> {
2424
let client_with_auth = Client::builder().default_headers(headers).build()?;
2525

2626
// Create the HTTP transport.
27-
let rpc_url = "https://eth.merkle.io".parse()?;
27+
let rpc_url = "https://reth-ethereum.ithaca.xyz/rpc".parse()?;
2828
let http = Http::with_client(client_with_auth, rpc_url);
2929
let rpc_client = RpcClient::new(http, false);
3030

‎examples/providers/examples/multicall.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sol!(
2020
async fn main() -> eyre::Result<()> {
2121
// Create a new provider
2222
let provider = ProviderBuilder::new()
23-
.on_anvil_with_wallet_and_config(|a| a.fork("https://eth.merkle.io"))?;
23+
.on_anvil_with_wallet_and_config(|a| a.fork("https://reth-ethereum.ithaca.xyz/rpc"))?;
2424
// Create a new instance of the IWETH9 contract.
2525
let weth =
2626
IWETH9Instance::new(address!("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"), &provider);

‎examples/providers/examples/multicall_batching.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async fn main() -> Result<()> {
3131
.layer(CallBatchLayer::new().wait(Duration::from_secs(10)))
3232
// Can also use the shorthand `with_call_batching` on the build which set the delay to 1ms.
3333
// .with_call_batching()
34-
.on_anvil_with_wallet_and_config(|a| a.fork("https://eth.merkle.io"))?;
34+
.on_anvil_with_wallet_and_config(|a| a.fork("https://reth-ethereum.ithaca.xyz/rpc"))?;
3535

3636
// Create a new instance of the IWETH9 contract.
3737
let weth =

0 commit comments

Comments
 (0)