Skip to content

sk1122/wiam-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIAM SDK

Cover Image

WIAM helps Solana dApps to take data driven decisions by providing state of the class analytics services. This is a JS SDK with inbuilt TS types that helps Solana dApps to track activity on their dApp more easily.

What metrics does WIAM capture?

  • Connected wallet addresses
    • Transaction executed
  • Transactions
    • Volume
    • Status
  • Retention rate
  • Bounce rate
  • Page views
    • referrer
  • Heatmaps (Coming soon)

All of these metrics are available in our best-in-class intuitive dashboard.

We also let you to export all of the connected addresses as a .csv which you can use then to airdrop rewards, also building a feature where you can do that inside our dashboard itself.

Installation

yarn add wiam

Usage

You just have to send the connected wallet address to our SDK and rest of the tracking is handled by us.

You have to publically serve service-worker.js, if using react or next, upload this to public folder and send file's name in the options, FYI the file should be publically available at https://domain.com/service-worker.js

import WIAM from "wiam"

const wiam = new WIAM("API_KEY", {
    serviceWorker: "service-worker.js"
})

const App = () => {
    const { publicKey } = useWallet()

    useEffect(() => {
        if(publicKey) {
            wiam.setWallet(publicKey.toString())
        }
    }, [publicKey])
}

export default App

Open Source

Project is fully opensource from frontend to backend to SDK

Frontend Backend

Releases

No releases published

Packages

No packages published