Closed bro-n-bro-0 closed 12 months ago
SELECT
height,
JSONExtractString(arrayJoin(JSONExtractArrayRaw(JSONExtractString(fee, 'coins'))), 'denom') as denom,
sum(toUInt256OrZero(JSONExtractString(arrayJoin(JSONExtractArrayRaw(JSONExtractString(fee, 'coins'))), 'amount'))) as amount
FROM spacebox.`transaction` FINAL
GROUP BY height, denom
Here is a nice example Now we can get all currencies as fee
return structure ['y': date, 'x': [{'denom': denom, 'amount': amount}, ...]
Historical and static endpoints.
@bro-n-bro-0 @bro-n-bro-2 please check apis, if everything is ok, please close issue
Thanks !
The amount of fees paid in different coins