Smart Contract Deployment
Buburuza supports Solidity and Vyper contracts using standard Ethereum tools.
Example: Deploying Your First dApp with Hardhat
Initialize Hardhat:
mkdir my-buburuza-dapp && cd my-buburuza-dapp
npm init -y
npm install --save-dev hardhat
npx hardhatConfigure Hardhat for Buburuza Testnet:
module.exports = {
networks: {
buburuzaTestnet: {
url: "https://rpc.buburuza.com",
chainId: <TESTNET_CHAIN_ID_DECIMAL>,
accounts: [process.env.PRIVATE_KEY]
}
},
solidity: "0.8.20"
};Deploy a simple contract (
Greeter.sol):
Deploy using Hardhat script (
deploy.js):
Verify deployment on Buburuza Explorer.
Last updated
