thirdweb
Using thirdweb to build on Synapse Chain Testnet
Thirdweb is a web3 infrastructure developer suite that gives developers out-of-the-box tooling to easily deploy contracts on Synapse Chain Testnet.
Create a Smart contract
Run the following command in your CLI:
Customize additional command line prompts such as:
Assign a name to your project
Include any desired extensions
Once created, navigate to your project's directory and open it in your preferred code editor.
Inside the contracts folder, you'll find your smart contract written in Solidity.
Customize the base-contract to your own preference. Further documentation around the base contracts can be found here.
Deploy a Smart Contract
Use the CLI to deploy your contracts directly to Synapse Chain by running
This command will accomplish the following:
Detect the framework (Hardhat, Foundry or Truffle).
Compile all the contracts in the current directory using your project settings.
Allow you to select which contract(s) you want to deploy.
Upload your contract metadata to IPFS, making sure it matches exactly the encoded IPFS hash in the compiled bytecode.
Detect the extensions on your contract.
Open the deploy flow in the dashboard for you to connect a wallet, input the contract parameters and select a chain to deploy to, without needing to hardcode private keys!
In the resulting dashboard, fill out remaining parameters such as:
_name
_symbol
_royaltyRecipient
_royaltyBps
Select SynapseChainTestnet as the network
Reach out to thirdweb support with any additional questions.
Alternative Options
You can deploy a prebuilt contract for NFTs, tokens, or marketplace directly from the thirdweb Explore page:
Navigate to the thirdweb Explore page: https://thirdweb.com/explore
Choose the type of contract you want to deploy from the available options: NFTs, tokens, marketplace, and more.
Follow the on-screen prompts to configure and deploy your contract.
Last updated