Query editor
SELECT21000000 as "铭文总量(张)",COUNT(*) as "已铭刻数量(张)",IF(21000000 - COUNT(1) < 0, 0, 21000000 - COUNT(1)) as "剩余(张)",CAST(IF(100.0 - (COUNT(1) * 100.0 / 21000000.000) < 0,0,100.0 - (COUNT(1) * 100.0 / 21000000.000)) AS VARCHAR) || '%' AS "剩余(百分比)",COUNT(DISTINCT to) as "持有人数",SUM(gas_used * gas_price / 1e18) AS "Matic 消耗数量",SUM(gas_used * gas_price / 1e18 * 0.8) AS "消耗价值USD"FROM(SELECT*FROMpolygon.transactionsWHEREblock_number > 50403571and from_utf8(data) = 'data:,{"a":"NextInscription","p":"oprc-20","op":"mint","tick":"NI","amt":"10000"}'and "from" = toand success = trueORDER BYblock_number,indexLIMIT21000000) AS sorted_transactions