Hide Infura API key from docs (#863)
This commit is contained in:
parent
0526e920eb
commit
5005a3621a
|
@ -15,7 +15,7 @@ use std::convert::TryFrom;
|
||||||
|
|
||||||
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let provider = Provider::<Http>::try_from(
|
let provider = Provider::<Http>::try_from(
|
||||||
"https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"
|
"https://mainnet.infura.io/v3/YOUR_API_KEY"
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
let block = provider.get_block(100u64).await?;
|
let block = provider.get_block(100u64).await?;
|
||||||
|
@ -53,7 +53,7 @@ method on the provider.
|
||||||
# use std::convert::TryFrom;
|
# use std::convert::TryFrom;
|
||||||
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
# async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
# let provider = Provider::<Http>::try_from(
|
# let provider = Provider::<Http>::try_from(
|
||||||
# "https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27"
|
# "https://mainnet.infura.io/v3/YOUR_API_KEY"
|
||||||
# )?;
|
# )?;
|
||||||
// Resolve ENS name to Address
|
// Resolve ENS name to Address
|
||||||
let name = "vitalik.eth";
|
let name = "vitalik.eth";
|
||||||
|
|
Loading…
Reference in New Issue