diff --git a/examples/radiant-withdraw-asset.md b/examples/radiant-withdraw-asset.md new file mode 100644 index 0000000..51dc9c1 --- /dev/null +++ b/examples/radiant-withdraw-asset.md @@ -0,0 +1,173 @@ +## Radiant Withdraw asset + +### Description +Get a QuickAlert anytime a "Withdraw" transaction is sent to Radiant Protocol smart contract. + +### Blockchain & Network +Ethereum Mainnet + +### Expression Values +- `0xa950974f64aa33f27f6c5e017eee93bf7588ed07` Radiant smart contract +- `0x69328dec` Transaction input starts with these bytes to represent the method `withdraw(address asset,uint256 amount,address to)` + +### Expression +``` +(tx_to == '0xa950974f64aa33f27f6c5e017eee93bf7588ed07' && tx_input =~ '0x69328dec') +``` + +### Expected Result +``` +[ + { + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "blockNumber": "0x11f41b8", + "contractAddress": null, + "cumulativeGasUsed": "0x5b2b0b", + "effectiveGasPrice": "0xa1dc47a23", + "from": "0xeb4536003241348012a40470ba86934d141a7342", + "gasUsed": "0x6e03b", + "logs": [ + { + "address": "0x03ab03da2c5012855c743bc318c19ef3de5bc906", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x00000000000000000000000028e395a54a64284dba39652921cd99924f4e3797" + ], + "data": "0x0000000000000000000000000000000000000000000000000000828e28ceed6f", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x62", + "removed": false + }, + { + "address": "0x03ab03da2c5012855c743bc318c19ef3de5bc906", + "topics": [ + "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f", + "0x00000000000000000000000028e395a54a64284dba39652921cd99924f4e3797" + ], + "data": "0x0000000000000000000000000000000000000000000000000000828e28ceed6f0000000000000000000000000000000000000000033cab154643c1a2cb85731a", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x63", + "removed": false + }, + { + "address": "0xa950974f64aa33f27f6c5e017eee93bf7588ed07", + "topics": [ + "0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a", + "0x000000000000000000000000ae78736cd615f374d3085123a210448e74fc6393" + ], + "data": "0x00000000000000000000000000000000000000000001c0b1f22ddcffafd527b600000000000000000000000000000000000000000116a877486b0c3afbf7fc6a00000000000000000000000000000000000000000026138ecdba4141eae532aa0000000000000000000000000000000000000000033cab154643c1a2cb85731a000000000000000000000000000000000000000003495950f9caab63190507fb", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x64", + "removed": false + }, + { + "address": "0xa950974f64aa33f27f6c5e017eee93bf7588ed07", + "topics": [ + "0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd", + "0x000000000000000000000000ae78736cd615f374d3085123a210448e74fc6393", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342" + ], + "data": "0x", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x65", + "removed": false + }, + { + "address": "0x14b0a611230dc48e9cc048d3ae5279847bf30919", + "topics": [ + "0x526824944047da5b81071fb6349412005c5da81380b336103fbe5dd34556c776", + "0x00000000000000000000000003ab03da2c5012855c743bc318c19ef3de5bc906", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002fcfb70cc5f887e12c", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x66", + "removed": false + }, + { + "address": "0xae78736cd615f374d3085123a210448e74fc6393", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x00000000000000000000000003ab03da2c5012855c743bc318c19ef3de5bc906", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342" + ], + "data": "0x00000000000000000000000000000000000000000000000b4a67b05b29640676", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x67", + "removed": false + }, + { + "address": "0x03ab03da2c5012855c743bc318c19ef3de5bc906", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ], + "data": "0x00000000000000000000000000000000000000000000000b4a67b05b29640676", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x68", + "removed": false + }, + { + "address": "0x03ab03da2c5012855c743bc318c19ef3de5bc906", + "topics": [ + "0x5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342" + ], + "data": "0x00000000000000000000000000000000000000000000000b4a67b05b296406760000000000000000000000000000000000000000033cab154643c1a2cb85731a", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x69", + "removed": false + }, + { + "address": "0xa950974f64aa33f27f6c5e017eee93bf7588ed07", + "topics": [ + "0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7", + "0x000000000000000000000000ae78736cd615f374d3085123a210448e74fc6393", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342", + "0x000000000000000000000000eb4536003241348012a40470ba86934d141a7342" + ], + "data": "0x00000000000000000000000000000000000000000000000b4a67b05b29640676", + "blockNumber": "0x11f41b8", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "blockHash": "0xb3d4b73c4f9ee34238fc74511923404bf8e791f33f4f1c2e4de2d94583861329", + "logIndex": "0x6a", + "removed": false + } + ], + "logsBloom": "0x000000800004000400000000000080000080000000000000000000000010010000000040000000000000000000000000002002000000000000001000000000010000000000000000800000080000000000020000000000000000000a0000000020000000022000000000000000000800000000000008020040020012000000000000000000000000000000000000200000008000080800000000800000000004000000000180000000000000000000000000000000000000000000000000010000200002000800000000802000020000000000000020000000000000000020000000000000000000000080000002000000000000000000000000200000000000", + "status": "0x1", + "to": "0xa950974f64aa33f27f6c5e017eee93bf7588ed07", + "transactionHash": "0x624a3614180c7fae8d6cac55fcb7770bb9ecb89f8794e2bcf14372432783e793", + "transactionIndex": "0x50", + "type": "0x2" + } +] +```