From 4500cdc13f64da3289d858cc6a5817db59266529 Mon Sep 17 00:00:00 2001 From: TechieTeee Date: Tue, 26 Dec 2023 03:16:40 +0000 Subject: [PATCH] Improved bayc nft transfer with filtering and aggregation --- examples/bayc-transferred-improved.md | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 examples/bayc-transferred-improved.md diff --git a/examples/bayc-transferred-improved.md b/examples/bayc-transferred-improved.md new file mode 100644 index 0000000..3071557 --- /dev/null +++ b/examples/bayc-transferred-improved.md @@ -0,0 +1,35 @@ +## Bored Ape Yacht Club (BAYC) Transfered Improved Alert + +### Description +Get a QuickAlert anytime a transfer of a Bored Ape Yacht Club (BAYC) happens with additional filtering and aggregation. Further refines results by filtering based on the BAYC contract address. Optimizes processing by handling blocks in batches of 1000. + +### Blockchain & Network +Ethereum Mainnet + +### Expression Values +- `0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d` BAYC Contract +- `0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef` Transfer Log + +### Expression +``` +(tx_logs_address == '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d') && (tx_logs_topic0 == '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef') +``` + +### Expected Result +``` +[ + { + "blockchain": "Ethereum Mainnet", + "description": "Bored Ape Yacht Club (BAYC) Transferred", + "expression": "(tx_status == 1) && (tx_logs_address == '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d') && (tx_logs_topic0 == '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef')", + "aggregation": { + "type": "block_range", + "value": 1000 + }, + "filters": { + "contract_address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d" + } +} + +] +```