Query editor
with nft_mints as (selectblock_time, tx_hash, varbinary_ltrim (varbinary_substring (input, 5, 32)) as receiver, from_utf8(varbinary_rtrim (varbinary_substring (input, 108))) as ipfs_hashfrom apechain.traceswhere to = 0x940e8747c6d8bc80e31d727ddd28baa3235bce09and varbinary_substring (input, 1, 4) = 0xd65971f3 -- mintToWithURIand success = true), ipfs_hashes_list as (select*from (select*, row_number() over (partition byipfs_hashorder byblock_time desc) as rnfrom nft_mints) twhere rn = 1), ipfs_metadata as (selectipfs_hash, http_get (concat('https://emerald-academic-spoonbill-382.mypinata.cloud/ipfs/', ipfs_hash), array['x-pinata-gateway-token: QgC3vbQ54rmZMUsAJp-f-Msu3UHaKGy726TVqVzEJS_2T-s8UhG4Ul0h3H3H_ms1']) as ipfs_json, block_timefrom ipfs_hashes_list), ipfs_metadata_2 as (selectregexp_extract(json_extract_scalar(ipfs.ipfs_json, '$.name'), '#([0-9]+)', 1) as id, json_extract_scalar(ipfs.ipfs_json, '$.name') as name, casewhen STRPOS(json_extract_scalar(ipfs.ipfs_json, '$.name'), ' RACE POSTER') > 0then TRIM(SUBSTRING(json_extract_scalar(ipfs.ipfs_json, '$.name')from 1 for STRPOS(json_extract_scalar(ipfs.ipfs_json, '$.name'), ' RACE POSTER') - 1))elsenullend as location, concat('ipfs://', ipfs_hash) as ipfs_hash, concat('https://ipfs.io/ipfs/', ipfs_hash) as ipfs_url