Query editor
SELECT2100000 as "铭文总量(张)",COUNT(*) as "已铭刻数量(张)",IF(2100000 - COUNT(1) < 0, 0, 2100000 - COUNT(1)) as "剩余(张)",CAST(IF(100.0 - (COUNT(1) * 100.0 / 2100000.000) < 0,0,100.0 - (COUNT(1) * 100.0 / 2100000.000)) AS VARCHAR) || '%' AS "剩余(百分比)",COUNT(DISTINCT to) as "持有人数",SUM(gas_used * gas_price / 1e18) AS "BNB 消耗数量",SUM(gas_used * gas_price / 1e18 * 240) AS "消耗价值USD"FROM(SELECT*FROMbnb.transactionsWHEREblock_number > 34207556and from_utf8(data) = 'data:,{"p":"bsc-20","op":"mint","tick":"WKLS","amt":"1000"}'and "from" = toand success = trueORDER BYblock_number,indexLIMIT2100000) AS sorted_transactions