ThirdwebSDK class
The main entry point for the thirdweb SDK
Signature:
export declare class ThirdwebSDK extends RPCConnectionHandler
Extends: RPCConnectionHandler
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(network, options, storage) | Constructs a new instance of the ThirdwebSDK class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
auth | readonly | void | |
deployer | ContractDeployer | New contract deployer | |
multiChainRegistry | MultichainRegistry | The registry of deployed contracts | |
storage | ThirdwebStorage | Upload and download files from IPFS or from your own storage service | |
wallet | UserWallet | Interact with the connected wallet |
Methods
Method | Modifiers | Description |
---|---|---|
fromPrivateKey(privateKey, network, options, storage) | static | (BETA) Get an instance of the thirdweb SDK based on a private key. |
fromSigner(signer, network, options, storage) | static | (BETA) Get an instance of the thirdweb SDK based on an existing ethers signer |
fromWallet(wallet, network, options, storage) | static | (BETA) Get an instance of the thirdweb SDK based on an AbstractWallet |
getBalance(address) | Get the native balance of a given address (wallet or contract) | |
getContract(address) | Get an instance of a Custom ThirdwebContract | |
getContract(address, contractType) | Get an instance of a Custom ThirdwebContract | |
getContract(address, abi) | Get an instance of a Custom ThirdwebContract | |
getContractFromAbi(address, abi) | (BETA) Get an instance of a Custom contract from a json ABI | |
getContractList(walletAddress) | Return all the contracts deployed by the specified address | |
getEdition(contractAddress) | Get an instance of a Edition contract | |
getEditionDrop(contractAddress) | Get an instance of a Edition Drop contract | |
getMarketplace(contractAddress) | Get an instance of a Marketplace contract | |
getMarketplaceV3(contractAddress) | Get an instance of a Marketplace contract | |
getMultiwrap(contractAddress) | Get an instance of a Pack contract | |
getNFTCollection(contractAddress) | Get an instance of a NFT Collection Drop contract | |
getNFTDrop(contractAddress) | Get an instance of a NFT Drop contract | |
getPack(contractAddress) | Get an instance of a Pack contract | |
getSignatureDrop(contractAddress) | Get an instance of a Signature Drop contract | |
getSplit(contractAddress) | Get an instance of a Split contract | |
getToken(contractAddress) | Get an instance of a Token contract | |
getTokenDrop(contractAddress) | Get an instance of a Token Drop contract | |
getVote(contractAddress) | Get an instance of a Vote contract | |
resolveContractType(contractAddress) | ||
updateSignerOrProvider(network) | Update the active signer or provider for all contracts |