Skip to content

Commit e841282

Browse files
committed
don't use from_env() in readme
1 parent 80ca8ec commit e841282

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ query = QueryBase(
6565
)
6666
print("Results available at", query.url())
6767
68-
dune = DuneClient.from_env()
68+
dune = DuneClient()
6969
results = dune.run_query(query)
7070
7171
# or as CSV
@@ -84,7 +84,7 @@ You can specify a `max_age_hours` to re-run the query if the data is too outdate
8484
```python
8585
from dune_client.client import DuneClient
8686
87-
dune = DuneClient.from_env()
87+
dune = DuneClient()
8888
results = dune.get_latest_result(1215383, max_age_hours=8)
8989
```
9090
@@ -108,7 +108,7 @@ sql = """
108108
LIMIT {{N}}
109109
"""
110110
111-
dune = DuneClient.from_env()
111+
dune = DuneClient()
112112
query = dune.create_query(
113113
name="Top {N} Most Expensive Transactions on Ethereum",
114114
query_sql=sql,

0 commit comments

Comments
 (0)