Socket
Socket
Sign inDemoInstall

@thirdweb-dev/sdk

Package Overview
Dependencies
Maintainers
5
Versions
3969
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thirdweb-dev/sdk

The main thirdweb SDK.


Version published
Weekly downloads
15K
decreased by-43.98%
Maintainers
5
Weekly downloads
 
Created
Source

thirdweb-sdk

Installation

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

npm install @thirdweb-dev/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 "@thirdweb-dev/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 24 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