Socket
Book a DemoInstallSign in
Socket

use-fullstory-web3

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-fullstory-web3

Automatically record web3 events into FullStory

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 10 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.