Giter VIP home page Giter VIP logo

posthog-ethereum-event-plugin's Introduction

Ethereum Event Plugin

This plugin reads, parses and ingests events/logs from the Ethereum mainnet for a specific contract address - allowing you to analyze on-chain events in PostHog.

Configuration

The configuration for the plugin are as follows

Contract Address: The address of the contract being monitored

Contract ABI: The ABI for the contract being monitored. Uploaded as a JSON file.

Event Parsing Instructions: An optional JSON file that describes how events should be parsed before being ingested into PostHog. If an event or argument are not described in this file, it will be parsed using only the information in the ABI. Each argument can be given 2 values:

  • isDistinctId: An optional boolean that designates if this field should be duplicated as the event's distinct_id
  • argType: An optional string that describes how the value should be parsed. Options are: 'eth', 'number', and 'string'. If no option is provided, we will default to however ethers.js parses the field

Here is an example event parsing JSON object

{
    "Transfer": { // Event name as used in the ABI
        "to": { // Name of argument as described in the ABI
            "isDistinctId": true,
        },
        "amount": {
            "argType": "eth",
        }
        ....
    }
    ...
}

posthog-ethereum-event-plugin's People

Contributors

rcmarron avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.