Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@3rdweb/sdk

Package Overview
Dependencies
Maintainers
7
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3rdweb/sdk

The main thirdweb SDK.

  • 2.0.0-nightly.3
  • nightly
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

thirdweb-sdk

Installation

Install the latest version of the SDK with npm or yarn:

npm install @3rdweb/sdk@nightly

Quick start

  1. Deploy & customize your contracts
  • Using your thirdweb dashboard (recommended)
  • Using the SDK directly (for advanced use cases)
  1. Interact with your contracts from your own code using the thirdweb SDK
import { ThirdwebSDK } from "@3rdweb/sdk";

// instantiate the SDK with a read only RPC url or a Signer to perform transactions
const sdk = new ThirdwebSDK("your_rpc_url_or_signer");

// access your deployed contracts
const nftDrop = sdk.getNFTDrop("0x...");
const marketplace = sdk.getMarketplace("0x...");

// Read from your contract
const listings = await marketplace.getAllListings();

// Perform transactions (requires a signer)
await marketplace.buyoutDirectListing(listingId, quantityDesired);

Api Reference & code examples

Get in touch

FAQs

Package last updated on 16 Feb 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc