| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Best in class Web3 SDK for Unity games
Head over to the releases page and download the latest .unitypackage file.
Drag and drop the file into your project.
The package comes with a sample Scene showcasing the different capabilities of the SDK.
Note that in order to communicate with the SDK, you need to Build and run your project so it runs in a browser context.
// instantiate a read only SDK on any EVM chain
var sdk = new ThirdwebSDK("goerli");
// connect the user's wallet - supports Metamask, Coinbase Wallet, WalletConnect and more
var walletAddress = await sdk.wallet.Connect();
// interact with the wallet
CurrencyValue balance = await sdk.wallet.GetBalance();
var signature = await sdk.wallet.Sign("message to sign");
// get an instance of a deployed contract (no ABI requried!)
var contract = sdk.GetContract("0x...");
// fetch data from any ERC20/721/1155 or marketplace contract
CurrencyValue currencyValue = await contract.ERC20.TotalSupply();
NFT erc721NFT = await contract.ERC721.Get(tokenId);
List<NFT> erc1155NFTs = await contract.ERC1155.GetAll();
List<Listing> listings = await marketplace.GetAllListings();
// execute transactions from the connected wallet
await contract.ERC20.Mint("1.2");
await contract.ERC721.signature.Mint(signedPayload);
await contract.ERC1155.Claim(tokenId, quantity);
await marketplace.BuyListing(listingId, quantity);
// deploy contracts from the connected wallet
var address = await sdk.deployer.DeployNFTCollection(new NFTContractDeployMetadata {
name = "My Personal Unity Collection",
primary_sale_recipient = await sdk.wallet.GetAddress(),
});See full documentation on the thirdweb portal.
| Back | FazBrowse Home | New Git URL |