Skip to content

overlay-market/overlay-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

overlay-sdk

Installation

  1. Build the package:
cd packages/overlay-sdk
pnpm run build
  1. Link the package to react application
cd ../../apps/overlay
pnpm add overlay-sdk

Usage

To get started with the Overlay SDK import the necessary module:

import { OverlaySDK } from 'overlay-sdk'

Initialization

Before using the SDK create an instance of the OverlaySDK class:

// Pass your own viem PublicClient

import { createPublicClient, http } from "viem";
import { arbitrumSepolia } from "viem/chains";

const rpcProvider = createPublicClient({
  chain: arbitrumSepolia,
  transport: http(),
});
const web3Provider = window.ethereum;

const sdk = new OverlaySDK({
  chainId: 421614,
  rpcProvider,
  web3Provider,
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •