Events
Examples
Note
These examples are crafted as a Jupyter notebook. You can download the original notebook file here.
Also note that inside Jupyter notebooks, await
can be used freely outside of asyncio.run()
.
In [1]:
import ctc
In [2]:
contract_address = '0x956f47f50a910163d8bf957cf5846d573e7f87ca'
Get events by name¶
In [3]:
events = await ctc.async_get_events(
contract_address=contract_address,
event_name='Transfer',
verbose=False,
)
events
Out[3]:
address | block_hash | transaction_hash | contract_address | event_name | event_hash | arg__from | arg__to | arg__value | |||
---|---|---|---|---|---|---|---|---|---|---|---|
block_number | transaction_index | log_index | |||||||||
12168368 | 61 | 29 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000000000000000000000000000000000000 | 0xbffb152b9392e38cddc275d818a3db7fe364596b | 1302613195326042426081658189 |
32 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000000000000000000000000000000000000 | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 1315770904369739824324907262 | ||
34 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 1315770904369739824324907262 | ||
42 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 0x0000000000000000000000000000000000000000 | 0 | ||
46 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000000000000000000000000000000000000 | 0xbffb152b9392e38cddc275d818a3db7fe364596b | 500000000000000000000 | ||
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
15613010 | 41 | 309 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xaae39c6fe7493accb4638bf7c56ae46c8bce5fa0fa3d... | 0xd5a6c5231f6f1a8b67ae6a5399ea1d827b0ad3edecd5... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xf2f400c138f9fb900576263af0bc7fcde2b1b8a8 | 0xba12222222228d8ba445958a75a0704d566bf2c8 | 185469717332960281460 |
15613063 | 96 | 263 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x18107b4cd7d0f7271fa0a7acff48b39d50c0b765e06a... | 0x0a249e10c1e5e74a08cb1f34313eeccc8d0208c4de08... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0x9435f1085584764b081177944033d4ed2cfd23ee | 82440313368426018120 |
15613067 | 47 | 148 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x5687eabcf6df0d3f400f8b56616b3a37391b927a8113... | 0x992111315f732cb36397113171f30b12ab177cea53c1... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0x9435f1085584764b081177944033d4ed2cfd23ee | 118178478503069594837 |
15613072 | 119 | 257 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x5b390756df46a718f25302f6d0ce716bff2b862fe486... | 0xd379f7a306705039563bb0f3673303a55688b9857305... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9435f1085584764b081177944033d4ed2cfd23ee | 0xdf50fbde8180c8785842c8e316ebe06f542d3443 | 200618791871495612957 |
15613170 | 3 | 34 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x0d8b43d3739d7d28d4ff9cbf08454a6e609979dbdead... | 0xca4556984e83346d371ef525e4df96746354fe322908... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xba12222222228d8ba445958a75a0704d566bf2c8 | 0xdf50fbde8180c8785842c8e316ebe06f542d3443 | 847083254783738283116 |
276957 rows × 9 columns
Get events by hash¶
In [4]:
events = await ctc.async_get_events(
contract_address=contract_address,
event_hash='0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
verbose=False,
)
events
Out[4]:
address | block_hash | transaction_hash | contract_address | event_name | event_hash | arg__from | arg__to | arg__value | |||
---|---|---|---|---|---|---|---|---|---|---|---|
block_number | transaction_index | log_index | |||||||||
12168368 | 61 | 29 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000000000000000000000000000000000000 | 0xbffb152b9392e38cddc275d818a3db7fe364596b | 1302613195326042426081658189 |
32 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000000000000000000000000000000000000 | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 1315770904369739824324907262 | ||
34 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 1315770904369739824324907262 | ||
42 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 0x0000000000000000000000000000000000000000 | 0 | ||
46 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000000000000000000000000000000000000 | 0xbffb152b9392e38cddc275d818a3db7fe364596b | 500000000000000000000 | ||
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
15613010 | 41 | 309 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xaae39c6fe7493accb4638bf7c56ae46c8bce5fa0fa3d... | 0xd5a6c5231f6f1a8b67ae6a5399ea1d827b0ad3edecd5... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xf2f400c138f9fb900576263af0bc7fcde2b1b8a8 | 0xba12222222228d8ba445958a75a0704d566bf2c8 | 185469717332960281460 |
15613063 | 96 | 263 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x18107b4cd7d0f7271fa0a7acff48b39d50c0b765e06a... | 0x0a249e10c1e5e74a08cb1f34313eeccc8d0208c4de08... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0x9435f1085584764b081177944033d4ed2cfd23ee | 82440313368426018120 |
15613067 | 47 | 148 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x5687eabcf6df0d3f400f8b56616b3a37391b927a8113... | 0x992111315f732cb36397113171f30b12ab177cea53c1... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0x9435f1085584764b081177944033d4ed2cfd23ee | 118178478503069594837 |
15613072 | 119 | 257 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x5b390756df46a718f25302f6d0ce716bff2b862fe486... | 0xd379f7a306705039563bb0f3673303a55688b9857305... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9435f1085584764b081177944033d4ed2cfd23ee | 0xdf50fbde8180c8785842c8e316ebe06f542d3443 | 200618791871495612957 |
15613170 | 3 | 34 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x0d8b43d3739d7d28d4ff9cbf08454a6e609979dbdead... | 0xca4556984e83346d371ef525e4df96746354fe322908... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xba12222222228d8ba445958a75a0704d566bf2c8 | 0xdf50fbde8180c8785842c8e316ebe06f542d3443 | 847083254783738283116 |
276957 rows × 9 columns
Get events from specific block range¶
In [5]:
events = await ctc.async_get_events(
contract_address=contract_address,
event_hash='0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
verbose=False,
start_block=14000000,
end_block=14100000,
)
events
Out[5]:
address | block_hash | transaction_hash | contract_address | event_name | event_hash | arg__from | arg__to | arg__value | |||
---|---|---|---|---|---|---|---|---|---|---|---|
block_number | transaction_index | log_index | |||||||||
14000000 | 0 | 25 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x9bff49171de27924fa958faf7b7ce605c1ff0fdee86f... | 0x3dac2080b4c423029fcc9c916bc430cde441badfe736... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xbb2e5c2ff298fd96e166f90c8abacaf714df14f8 | 0x27239549dd40e1d60f5b80b0c4196923745b1fd2 | 58823967281975952181439 |
28 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x9bff49171de27924fa958faf7b7ce605c1ff0fdee86f... | 0x3dac2080b4c423029fcc9c916bc430cde441badfe736... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x27239549dd40e1d60f5b80b0c4196923745b1fd2 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 58823967281975952181439 | ||
14000003 | 60 | 62 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xcd22a09bfd8469b1925d9e19a74cd1c39e07d0806c4c... | 0x1582ce5345df47d797d5b80c2cbb38ee0375b2875a61... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 73435661712369422675474 |
14000005 | 181 | 313 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x30cfbe428ed1968e1231798adf0b2ed6b07eeaaab627... | 0xd09cf5bfab64ea8e01003ffbe5733e3eaf4f1eaa0f3d... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 0x9e2336aef4157944f201becd90ccb24e298660cb | 14767355748583855822194 |
14000007 | 131 | 139 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x60fff3a3c4b64841f7ead1e4d8b4475fd0b82e79feb9... | 0xdf6ef40edf4fd93945fad02033c9eef8445f4430d3d8... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 25820219943704516282552 |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
14099877 | 158 | 264 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x1d7f74366a55c8ae48649bab4d1103cbfff27c3cba10... | 0x9d6d8a7147e439efa1898a41bc4150b5edad338ead72... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0xad7575aefd4d64520c3269fd24eae1b0e13dbe7b | 531497726956320332900 |
14099895 | 92 | 179 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x30e7fabe4aa9037c9fea24328586b2b8dfa6b87291d3... | 0x17ec4301bc5bcc6198edb5883106b79220483c2ee216... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xdf50fbde8180c8785842c8e316ebe06f542d3443 | 0x220bda5c8994804ac96ebe4df184d25e5c2196d4 | 39986350026354596022200 |
182 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x30e7fabe4aa9037c9fea24328586b2b8dfa6b87291d3... | 0x17ec4301bc5bcc6198edb5883106b79220483c2ee216... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x220bda5c8994804ac96ebe4df184d25e5c2196d4 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 39986350026354596022200 | ||
14099898 | 83 | 173 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xb2ca06b6226be54c59ff3a47911b0e18e86e2d866a22... | 0x5835247355b0797573934bef143ce26396d557c366df... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0xfad2a068f5765b7a3fdeef40f98beba5ed346839 | 24991357207226385107527 |
177 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xb2ca06b6226be54c59ff3a47911b0e18e86e2d866a22... | 0x5835247355b0797573934bef143ce26396d557c366df... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xfad2a068f5765b7a3fdeef40f98beba5ed346839 | 0xdf50fbde8180c8785842c8e316ebe06f542d3443 | 24972371054263013467815 |
11996 rows × 9 columns
Specify event timestamps¶
In [6]:
# query events over a specific time range
events = await ctc.async_get_events(
contract_address=contract_address,
event_hash='0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
verbose=False,
start_time='2021-01-01',
end_time='2022-01-01',
)
events
Out[6]:
block_hash | transaction_hash | contract_address | event_name | arg__from | arg__to | arg__value | address | event_hash | |||
---|---|---|---|---|---|---|---|---|---|---|---|
block_number | transaction_index | log_index | |||||||||
12168368 | 61 | 29 | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x0000000000000000000000000000000000000000 | 0xbffb152b9392e38cddc275d818a3db7fe364596b | 1302613195326042426081658189 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... |
32 | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x0000000000000000000000000000000000000000 | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 1315770904369739824324907262 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | ||
34 | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 1315770904369739824324907262 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | ||
42 | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x9b0c6299d08fe823f2c0598d97a1141507e4ad86 | 0x0000000000000000000000000000000000000000 | 0 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | ||
46 | 0x3bce142af146fec596340d67569a44688690955a065f... | 0xc9851f374701f76024c1f44f7166e0ef8a9945675046... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x0000000000000000000000000000000000000000 | 0xbffb152b9392e38cddc275d818a3db7fe364596b | 500000000000000000000 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | ||
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
13916105 | 136 | 288 | 0xfaffe0f4333160d4843875f613f2c305b9954d922a41... | 0x13992e013aae7c7c12298d0d04f3c0f7821ccc26d1c3... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 60431153874598879800613 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... |
13916130 | 95 | 294 | 0xdccb47f7c48fac79c3a3a25fe85be29b27da7df32d0a... | 0xf3f8518c6dffbbfa98d7be53ef97af330f789159ce46... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xd8553552f8868c1ef160eedf031cf0bcf9686945 | 0x8639f60e8f9b984eaf62b0bd89f62d6161e182f9 | 11000000000000000000000 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... |
13916150 | 121 | 270 | 0xe5720247372b46b2690ce3b7c22b70ec67cedc348b90... | 0xa09e7d9a4e93be293a96eed9a4c33762eb77f8c8b00a... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xba12222222228d8ba445958a75a0704d566bf2c8 | 0x8bcf7e0ca3de9ec2637a76184eb746e844d2e2f6 | 8734901588905088209698 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... |
202 | 505 | 0xe5720247372b46b2690ce3b7c22b70ec67cedc348b90... | 0xd6c36332d289c8d1cba11c63917392f2a1f665f8a386... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 0xf89ce5ed65737da8440411544b0499c9fad323b2 | 9052649229764771959302 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | |
13916163 | 255 | 411 | 0x64d03ba946c50fe026034ff0b650371b2d55dcf7e789... | 0x75ff937d6002c7fef42ba0244be91afd4073c84f55e6... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0x8639f60e8f9b984eaf62b0bd89f62d6161e182f9 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 11000000000000000000000 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... |
183960 rows × 9 columns
In [7]:
# include block timestamps in output
events = await ctc.async_get_events(
contract_address=contract_address,
event_hash='0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
verbose=False,
start_time='2021-06-01',
end_time='2021-06-02',
include_timestamps=True,
)
events
Out[7]:
timestamp | address | block_hash | transaction_hash | contract_address | event_name | event_hash | arg__from | arg__to | arg__value | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|
block_number | transaction_index | log_index | ||||||||||
12545224 | 11 | 28 | 1622505628 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x07f75ee169d207aa0ace5076ec062cbe7a2a28041b0d... | 0x2b6a1ed787028fe44149d7d8af227176e25bf56e5600... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x4636650a4be0f6bfa226c31b537349e9d43df6c0 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 312396728160777272453828 |
12545238 | 72 | 131 | 1622505778 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x2a490f6f64d65dd0c5149b0569202fc6b3150ed0d6c7... | 0x5b69c8489ef858798c918470d87f0de750f98013fe61... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xdf63be2e473ba04c26b1609e51d08cf0d78e0913 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 706291806832338833102925 |
73 | 143 | 1622505778 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x2a490f6f64d65dd0c5149b0569202fc6b3150ed0d6c7... | 0x31e0c09b21a629be1eb5253dccb38a76322a7fde53ef... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x8c54aa2a32a779e6f6fbea568ad85a19e0109c26 | 0x0000000089341e263b85d84a0eea39f47c37a9d2 | 29987500411601108523301 | |
146 | 1622505778 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x2a490f6f64d65dd0c5149b0569202fc6b3150ed0d6c7... | 0x31e0c09b21a629be1eb5253dccb38a76322a7fde53ef... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x0000000089341e263b85d84a0eea39f47c37a9d2 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 29987500411601108523301 | ||
12545241 | 0 | 1 | 1622505809 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0xbb8722c65092712b36742f34dd4199846b6ed5917d3b... | 0x5bdcbdf814281e7b25e26d7368779f5c2495e05071bd... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x5180545835bd68810fb7e11c7160bb7ea4ae8744 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 78336939301858730694074 |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
12551643 | 2 | 7 | 1622591237 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x6034349536a447944a436bf71b357b0dcb9bb7cf39ca... | 0x16cfa24ef00b2bceb5412bb847206a4a027ca4cd5cd3... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x8c54aa2a32a779e6f6fbea568ad85a19e0109c26 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 8643351664957109664094 |
12551657 | 9 | 20 | 1622591362 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x7477d41a8c513746371e96222b141d5e7226556d7567... | 0x4e164d0531c321ba81835bb2d4daac19a667df8e4c5e... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x8c54aa2a32a779e6f6fbea568ad85a19e0109c26 | 0xfd3dfb524b2da40c8a6d703c62be36b5d8540626 | 1200029161280036122303287 |
23 | 1622591362 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x7477d41a8c513746371e96222b141d5e7226556d7567... | 0x4e164d0531c321ba81835bb2d4daac19a667df8e4c5e... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0xfd3dfb524b2da40c8a6d703c62be36b5d8540626 | 0xc803698a4be31f0b9035b6eba17623698f3e2f82 | 1200029161280036122303287 | ||
12551679 | 4 | 17 | 1622591681 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x7f9e7bd6d750cd845206e2e1179765988f2d865e3ae9... | 0x827905ca746061556c65e709aaae3acde7997fa19880... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x94b0a3d511b6ecdb17ebf877278ab030acb0a878 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 192589761774079078450234 |
12551685 | 0 | 3 | 1622591787 | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | 0x1ac9e7f913cbbde28ac816106863fd3f75ca909cb99b... | 0x9a0126898a617db0f8d50d2c168488fa49e470a5bec5... | 0x956f47f50a910163d8bf957cf5846d573e7f87ca | Transfer | 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4... | 0x8c54aa2a32a779e6f6fbea568ad85a19e0109c26 | 0x9928e4046d7c6513326ccea028cd3e7a91c7590a | 288849857323932058972006 |
933 rows × 10 columns
Reference
- async ctc.evm.async_get_events(contract_address, *, start_block=None, end_block=None, start_time=None, end_time=None, include_timestamps=False, backend_order=None, keep_multiindex=True, verbose=True, provider=None, **query)
get events matching given inputs