Skip to content

Instantly share code, notes, and snippets.

@HAOYUatHZ
Last active January 17, 2019 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HAOYUatHZ/6f95bdee379a1a1b35046a651e2144ae to your computer and use it in GitHub Desktop.
Save HAOYUatHZ/6f95bdee379a1a1b35046a651e2144ae to your computer and use it in GitHub Desktop.
tx count
mysql> SELECT COUNT(*) FROM blockcenter.address_transactions where address_id = 3;
+----------+
| COUNT(*) |
+----------+
| 38283 |
+----------+
1 row in set (0.02 sec)
https://blockmeta.com/address/bm1qcxg0w7c70tdd46t7dxn204mkyeyudcz063s49e
38369
@HAOYUatHZ
Copy link
Author

SELECT
count(*)
FROM
addresses
INNER JOIN address_transactions ON addresses.id = address_transactions.address_id
INNER JOIN transactions ON address_transactions.transaction_id = transactions.id
WHERE address_transactions.asset_id = 1
AND addresses.address = "bm1q9tmh0jn8z5psuq44c92mrhpfs7qmqn06725frg";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment