Skip to main content

class ThirdwebSDK

The entry point for the thirdweb SDK.

Summary

MembersTypeDescriptions
walletvariableConnect and Interact with a user's wallet
deployervariableDeploy new contracts
ThirdwebSDKfunctionCreate an instance of the thirdweb SDK. Requires a webGL browser context.
GetContractfunctionGet an instance of a deployed contract.

Members

public Wallet wallet

Connect and Interact with a user's wallet


public Deployer deployer

Deploy new contracts


public inline ThirdwebSDK(string chainOrRPC,Options options)

Create an instance of the thirdweb SDK. Requires a webGL browser context.

Parameters

  • chainOrRPC The chain name or RPC url to connect to

  • options Configuration options


public inline Contract GetContract(string address,string abi)

Get an instance of a deployed contract.

Parameters

  • address The contract address

  • abi Optionally pass the ABI for contracts that cannot be auto resolved. Expected format for the ABI is escaped JSON string

Returns

A contract instance