Migrate from Ethereum
ThunderCore is a scaling solution for public blockchain. ThunderCore supports all existing Ethereum tooling along with faster and much much much cheaper transactions.
If you are looking to integrate with ThunderCore, you are in the right place.
Our blockchain natively supports EVM-compatible smart contracts. This following describes the steps required to port your existing Ethereum DApp to ThunderCore. If you haven't created a DApp before, checkout deploy your own game tutorial.
To connect to our network, see the RPC endpoints below. You can perform any RPC operation available in Ethereum on these URLs.
Network | RPC endpoint | Network ID |
---|---|---|
Mainnet | 108 | |
| 108 | |
| 108 | |
Testnet | 18 |
If you're using MetaMask, specify one of these URLs as a new, custom RPC.
If you're using Truffle, add the following section to your
truffle.js
file:module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*' // Match any network id
},
thunder-mainnet: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet-rpc.thundercore.com");
},
network_id: '108',
},
thunder-testnet: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://testnet-rpc.thundercore.com");
},
network_id: '18',
}
},
compilers: {
solc: {
version: "0.5.9",
settings: {
// see the solidity docs for advice about optimization and evmversion
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "byzantium" // Current EVM on ThunderCore is fixed to "byzantium"
}
}
}
}
No need to rewrite your smart contracts or change any of your infrastructure code, you should be good to go! If you are facing any problems, post it in our Discord for direct access to and immediate help from some of our developers.
Last modified 1yr ago