Skip to content

vacuumlabs/flux-capacitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔎 Flux Capacitor

Indexer for the NEAR protocol. Can be used for any contract living on NEAR.

We require a specific tx log encoded in json in order for Flux Capacitor to pickup your log and insert it into the database:

{
    "type": "TABLE_NAME",
    "cap_id": "ID_HERE",
    "action": "update or write",
    "params": {
        "key": "value"
    }
}

In order to run copy the .env.example to .env and run docker-compose up

Once started you can call using curl or via browser the following URL to tell Flux Capacitor to watch for logs for a specific contract:

http://localhost:3000/config/add_account?token=YOUR_API_TOKEN&account_id=CONTRACT_ID

Uses the NEAR Indexer Framework.

Refer to the NEAR Indexer Framework README to learn how to run this example.

About

🔎 General purpose NEAR indexer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 64.6%
  • Shell 35.4%