use-fullstory-web3
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

use-fullstory-web3

Automatically record web3 events into FullStory

NPM JavaScript Style Guide

useFullStoryWeb3 is a plug-and-play hook that will send data about Ethereum contract interactions straight to FullStory. It hooks into the Ethereum Provider JavaScript API (EIP-1193) and records all calls and transactions to the Ethereum blockchain via your dapp. It also stamps users with a hasWeb3 boolean to differentiate users which do or don't have an Ethereum provider installed.

On EIP-1193: https://eips.ethereum.org/EIPS/eip-1193

Install

npm install --save use-fullstory-web3

Usage

All useFullStoryWeb3 needs is your org ID and a Solidity-compiled ABI. The ABI is generally auto-generated by the contract development environment you are using (ie. hardhat, truffle, remix, etc.)

On the ABI: https://docs.soliditylang.org/en/v0.5.3/abi-spec.html

import * as React from "react";
import abi from "./my-abi";

import { useFullStoryWeb3 } from "use-fullstory-web3";

const App = () => {
  useFullStoryWeb3({ orgId: "123", abi });
  return <div>My app</div>;
};

Now, we can answer all sorts of deep Digital Experience questions using FullStory's comprehensive tooling and the data we've collected! How many users have Ethereum providers? Who

Screen Shot 2021-11-22 at 1 07 32 PM

License

MIT © ralfpopescu

Readme

Keywords

none

Package Sidebar

Install

npm i use-fullstory-web3

Weekly Downloads

35

Version

1.0.4

License

MIT

Unpacked Size

9.29 MB

Total Files

29

Last publish

Collaborators

  • popeska