description |
---|
Quick-start resource if you are hacking and need to integrate with Cronos. |
Cronos (cronos.org) is the leading Ethereum-compatible layer 1 blockchain network built on the Cosmos SDK, supported by Crypto.com, Crypto.org and more than 500 app developers and partners. Today, the #CROfam ecosystem represents an addressable user base of more than 80 million people worldwide. Our mission is to make it easy and safe for the next billion crypto users to adopt Web3, with a focus on DeFi and GameFi.
Check out our blog post.
Developing Dapps on Cronos is as easy as developing them on any of the major EVM-compatible chains: write and test solidity with Hardhat, deploy your contract, connect your frontend or your backend with ethers.js, and connect your wallet with MetaMask or Crypto.com Defi Wallet.
The native cryptocurrency of Cronos mainnet is CRO, while the testnet uses TCRO.
Cronos overview & key links for developers
- Cronos docs: https://docs.cronos.org
- Cronos Play (for game developers): https://cronos.org/play
- Why build on Cronos
- Cronos overview by Eat The Blocks: https://www.youtube.com/watch?v=NqeeKEJiPZU
MetaMask end-user configuration
- The cronos.org website has a little orange button at the top of the page, that you can click to add Cronos mainnet to your MetaMask wallet.
- For more details, see Metamask configuration
JSON-RPC endpoint configuration
-
For most use cases you can use the free endpoints that are provided by Cronos Labs. Most developers use a configuration file that looks like this:
For Hardhat:
{ "cronos_mainnet": { "chainId": 25, "url": "https://evm.cronos.org/", "gasPrice": 5000000000000, "blockExplorer": "https://explorer.cronos.org/", "blockExplorerPrefix": "https://explorer.cronos.org/tx/" }, "cronos_testnet": { "chainId": 338, "url": "https://evm-t3.cronos.org/", "gasPrice": 5000000000000, "blockExplorer": "https://explorer.cronos.org/testnet/", "blockExplorerPrefix": "https://explorer.cronos.org/testnet/tx/" }, }
or, using EIP1559 in a Node.js backend:
{ "cronos_mainnet": { "id": 25, "url": "https://evm.cronos.org/", "maxPriorityFeePerGas": 5000000000, "maxFeePerGas": 6000000000000, "blockExplorer": "https://explorer.cronos.org/", "blockExplorerPrefix": "https://explorer.cronos.org/tx/" }, "cronos_testnet": { "id": 338, "url": "https://evm-t3.cronos.org/", "maxPriorityFeePerGas": 5000000000, "maxFeePerGas": 6000000000000, "blockExplorer": "https://explorer.cronos.org/", "blockExplorerPrefix": "https://explorer.cronos.org/tx/" }, }
-
Testnet CRO faucet
Essential tutorials / boilerplates
- Deploy and verify your smart contracts (see Readme for instructions)
- Build a Dapp: how to connect and interact with Web3 wallets on Cronos (see Readme for instructions)
- Create & deploy a smart contract with OpenZeppelin Wizard and Remix (low code version)
Other useful tutorials
- Create an end to end Web3 application: smart contract and front-end client (repositories)
- Create a NFT collection on Cronos and IPFS
- Create dApps on Cronos chain (video)
- Build your Web3 Game with Cronos Play (video)
- How to win a hackathon (video)
Write, test and deploy smart contracts
- Smart contracts library: OpenZeppelin
- Compile & test: Hardhat
Connect your Dapp to the blockchain
Create games
- Cronos Play overview: Cronos Play
- Javascript SDK: Moralis
- Unity plugin: docs and repo
- Unreal plugin: docs, repo and demo
- C++ SDK: docs and repo
- Full list of available dev tools and integration
Please visit the #cronos-mainnet-beta channel on the Cronos Discord server.
Feedback is a gift! Let us know if there is anything that we can improve in this documentation.