Skip to content

Commit

Permalink
small update to example
Browse files Browse the repository at this point in the history
  • Loading branch information
JossDuff committed Jun 6, 2024
1 parent 954d2b4 commit a982388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/asset-id/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
We query from blocks 0 (inclusive) to 1299067 (exclusive) for all `Inputs` where the address `0x2a0d0ed9d2217ec7f32dcd9a1902ce2a66d68437aeff84e3a3cc8bebee0d2eea` matches on the `asset_id` field.
We query from blocks 0 (inclusive) to 1300000 (exclusive) for all `Inputs` where the address `0x2a0d0ed9d2217ec7f32dcd9a1902ce2a66d68437aeff84e3a3cc8bebee0d2eea` matches on the `asset_id` field.
3 changes: 2 additions & 1 deletion examples/asset-id/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async fn main() {
// start query from block 0
"from_block": 0,
// if to_block is not set, query runs to the end of the chain
"to_block": 1299067,
"to_block": 1300000,
// load inputs that have `asset_id` = 0x2a0d0ed9d2217ec7f32dcd9a1902ce2a66d68437aeff84e3a3cc8bebee0d2eea
"inputs": [
{
Expand All @@ -41,4 +41,5 @@ async fn main() {
let res = client.get_selected_data(&query).await.unwrap();

println!("inputs: {:?}", res.data.inputs);
println!("query took {}ms", res.total_execution_time);
}

0 comments on commit a982388

Please sign in to comment.