https://github.com/cardanosolutions/smart-contracts-analytics
🔬 A collection of scripts to classify and analyze the on-chain smart contract activity on Cardano
https://github.com/cardanosolutions/smart-contracts-analytics
analytics cardano smart-contracts
Last synced: 11 months ago
JSON representation
🔬 A collection of scripts to classify and analyze the on-chain smart contract activity on Cardano
- Host: GitHub
- URL: https://github.com/cardanosolutions/smart-contracts-analytics
- Owner: CardanoSolutions
- License: mpl-2.0
- Created: 2024-01-30T16:28:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-13T16:17:30.000Z (12 months ago)
- Last Synced: 2025-08-10T02:48:24.132Z (11 months ago)
- Topics: analytics, cardano, smart-contracts
- Language: Rust
- Homepage:
- Size: 22.4 MB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smart Contract Analytics
## Getting Started
### Pre-requisite
- Rust toolkit `>= 1.73.0` with Cargo.
- Node.js `>= 16.15.0` with Yarn / NPM.
- Ogmios `>= v6.0.0` (local or hosted on Demeter).
### Environment
Adjust the `.envrc` to select Ogmios' source.
> [!CAUTION]
> Ogmios needs to be running with the `--include-cbor` flag set.
### Collecting mainnet scripts
```
node collect-plutus-scripts.mjs 1>data/plutus_scripts.csv 2>data/native_scripts/YYYY_MM__YYYY_MM.json
```
### Collecting reference inputs
```
node collect-reference-inputs.mjs 1>data/reference_scripts/YYYY_MM__YYYY_MM.json
```
### Classifying validators
```
cargo run --release -- data/plutus_scripts.csv 1>data/validators/YYYY_MM__YYYY_MM.json
```
### Counting scripts usage on-chain
```
node count.mjs
```