Query editor
WITHaccount_deployment AS (SELECTad.block_time AS accountDeployementTime, ad.tx_hash AS accountDeploymentHash, SUBSTR(ad.topic2 , 13, 20) AS deployedAddress, ad.topic2 AS deployedAddressRawFROM base.logs adWHERE ad.topic0 = 0xd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d --AccountDeployed (index_topic_1 bytes32 userOpHash, index_topic_2 address sender, address factory, address paymaster--AND ad.tx_hash = 0xf522fc30dcfb1eb0f15258135985a156451b0d55e0856a04474ae056b95ccfb4 --myownAccountDeploymentHashAND SUBSTR(ad."data", 1 , 32) = 0x000000000000000000000000ba5ed110efdba3d005bfc882d75358acbbb85842 --factorAddressAND ad.block_time > CAST('2025-06-30' AS TIMESTAMP))--select * from account_deployment, r AS (SELECTblock_time, tx_hash, callerAddress AS creatorAccountAddress, payoutRecipient, platformReferrer, currencyAddress, contentCoinAddress, currency0Address, currency1Address, fee, tickSpacing, hooks, poolKeyHash, from_utf8(SUBSTR("data", uriStartIndex + 32, uriLength)) AS uri, from_utf8(SUBSTR("data", nameStartIndex + 32, nameLength)) AS name, from_utf8(SUBSTR("data", symbolStartIndex + 32, symbolLength)) AS symbol, from_utf8(SUBSTR("data", versionStartIndex + 32, versionLength)) AS version_, "data", contract_address, tx_from, tx_to, block_number * 10000 + index AS generatedIndexFROM (selectSUBSTR(topic1, 13, 20) AS callerAddress, SUBSTR(topic2, 13, 20) AS payoutRecipient, SUBSTR(topic3, 13, 20) AS platformReferrer, SUBSTR("data", 13, 20) AS currencyAddress, VARBINARY_TO_BIGINT(SUBSTR("data", 57, 8)) + 1 AS uriStartIndex, VARBINARY_TO_BIGINT(SUBSTR("data", VARBINARY_TO_BIGINT(SUBSTR("data", 57, 8)) + 25, 8)) AS uriLength, VARBINARY_TO_BIGINT(SUBSTR("data", 89, 8)) + 1 AS nameStartIndex, VARBINARY_TO_BIGINT(SUBSTR("data", VARBINARY_TO_BIGINT(SUBSTR("data", 89, 8)) + 25, 8)) AS nameLength, VARBINARY_TO_BIGINT(SUBSTR("data", 121, 8)) + 1 AS symbolStartIndex, VARBINARY_TO_BIGINT(SUBSTR("data", VARBINARY_TO_BIGINT(SUBSTR("data", 121, 8)) + 25, 8)) AS symbolLength, VARBINARY_TO_BIGINT(SUBSTR("data", 377, 8)) + 1 AS versionStartIndex, VARBINARY_TO_BIGINT(SUBSTR("data", VARBINARY_TO_BIGINT(SUBSTR("data", 377, 8)) + 25, 8)) AS versionLength, SUBSTR("data", 141, 20) AS contentCoinAddress, SUBSTR("data", 173, 20) AS currency0Address, SUBSTR("data", 205, 20) AS currency1Address, VARBINARY_TO_BIGINT(SUBSTR("data", 249, 8)) AS fee , VARBINARY_TO_BIGINT(SUBSTR("data", 281, 8)) AS tickSpacing, SUBSTR("data",301, 20) AS hooks, SUBSTR("data",321, 32) AS poolKeyHash, VARBINARY_LENGTH("data") AS dataLength, block_time, tx_hash, "data", contract_address, tx_from, tx_to, block_number, tx_index, indexfrom base.logs ccv4inner join account_deployment ad ON ad.deployedAddressRaw = ccv4.topic1where ccv4.topic0 = 0x2de436107c2096e039c98bbcc3c5a2560583738ce15c234557eecb4d3221aa81 --CoinCreatedV4 (index_topic_1 address caller, index_topic_2 address payoutRecipient, index_topic_3 address platformReferrer, address currency, string uri, string name, string symbol, address coin, tuple poolKey, bytes32 poolKeyHash, string version)AND block_time > CAST('2025-06-30' AS TIMESTAMP)--AND tx_hash = 0x7bf20d781d3d69dba7465dfe7365aad5b4c6b725b4bfb771d09f014a67819cce))SELECT