In addition to its native SDK, Hedera also supports smart contracts in a platform compatible with the Ethereum Virtual Machine. This allows for a great deal of interopability with Ethereum and the crypto ecosystem as a whole, where Solidity smart contract code can be ported to Hedera with little modification. The hashgraph technology allows for a high level of scalability, and the fees to deploy and interact with the smart contract are often extremely cheap, only fractions of an HBAR.
In order to get started, I created a fresh account on the Hedera developer portal and was granted two accounts, one of which has an EVM address and we use for smart contracts. I imported the Hedera Testnet as a custom network within my Metamask wallet and linked it with the HEX encoded private key, and saw my testnet HBARs. From here I wrote a simple smart contract in Remix and deployed it with the injected Metamask provider, and all deployment fees were paid in testnet HBAR. From here I could look up the contract EVM address on Hashscan.io and see more information about it, along with its Hedera account ID.
No comments:
Post a Comment