Skip to content

Latest commit

 

History

History

amberdata-example-whale-activity

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

amberdata-example-whale-activity

Build your own Multi-chain whale watching app using Amberdata.io! Example code uses token rankings endpoint

Check out the demo page!

Clone:

git clone [email protected]:amberdata/amberdata-example.git cd amberdata-example-whale-activity

1. Get API Key

Go to amberdata.io and click "Get started"

2. Build:

Building with Amberdata.io is as simple as including web3data-js either via cdn or Node.Js. Check out the web3data-js docs to learn more.

const web3data = new Web3Data(YOUR_API_KEY)
web3data.connect()

// Transactions
web3data.on({eventName: 'transactions'}, txn => {
  // Insert logic here
  console.log(txn);
})

// Pending Transactions
web3data.on({eventName: 'pending_transactions'}, txn => {
  // Insert logic here
  console.log(txn);
})

See source here.

Resources

Licensing

This project is licensed under the Apache Licence 2.0.