Token & Contract Deployment
Deploy Solidity smart contracts on Cookchain using an EVM wallet and standard Ethereum JSON-RPC. Tokens use ERC-20 contracts; native COOK pays the transaction gas.
1. Connect your wallet
Use Connect → Add Cookchain to MetaMask in the Explorer header. Select Cookchain and fund the deploying address with native COOK.
HTTP RPC: https://rpc.cookscan.net/evm
2. Compile your contract
Use your Solidity development tools to compile an ERC-20 implementation or another EVM contract. Keep the exact compiler version and complete Solidity Standard JSON input, including every source file, optimizer settings, EVM target and library addresses.
Choose a compiler supported by the verification form if you want to verify the deployed source through Cookscan.
3. Deploy on Cookchain
- Select Cookchain in your wallet and deployment tool.
- Provide the compiled creation bytecode and ABI-encoded constructor arguments.
- Estimate gas and confirm the deployment transaction in your wallet.
- Wait for a successful transaction receipt. Its
contractAddressis the deployed contract. - Open the address in Cookscan to inspect transactions, token metadata and events.
Check the connected chain
curl https://rpc.cookscan.net/evm \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'The expected result is 0x1352889 (20261001).
4. Verify the source
Open Verify Contract. Enter the contract address, exact compiler version, contract name, original Standard JSON input and constructor arguments. Verification succeeds when the compiled bytecode and metadata match the deployed contract.
Preserve the original build inputs. Changing the optimizer, source paths or compiler version can produce a different bytecode result.
Contract interactions
Use the ABI with an EVM wallet or client library. Read calls use eth_call; wallet-signed transactions change contract state. Read the receipt with eth_getTransactionReceipt and inspect events in Cookscan.
ERC-20 token decimals are defined by each token contract. Native COOK uses 18 decimals. Token balances and native gas balances are separate.