Skip to content

neokry/builder-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuilderSDK

The easiest way to build on Nouns Builder.

Builder SDK is a Typescript library that provides type safe interactions and data fetching for Nouns Builder contracts.

Getting started

yarn add @buildersdk/sdk
import { BuilderSDK } from "@buildersdk/sdk";

const { auction, token } = BuilderSDK.connect({
  signerOrProvider: mainnetProvider,
});

const auctionContract = auction({ address: auctionAddress });
const tokenContract = token({ address: tokenAddress });

const auctionData = await auctionContract.auction();
const tokenURI = await tokenContract.tokenURI(auctionData.tokenId);

Examples

The following examples are provided in the examples folder of this repo.

  • with-next
  • with-node

Running examples

To run an example locally, install dependencies.

yarn install

Then go into an example directory, eg: with-next.

cd examples/with-next

Then run the dev script.

yarn dev

About

Nouns builder TS SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published