Overview
Harmony (ONE) blockchain is an L2 blockchain platform built on the Ethereum network, making it easier for developers to create decentralized apps. As Harmony is EVM compatible, you can follow the Ethereumdocumentation to send your first transaction and utilize all other wallet features.Installation
Magic interacts with the Harmony blockchain via Magic’s extension NPM package@magic-ext/harmony
. The Harmony extension also lets you interact with the blockchain using methods from Harmony’s JavaScript SDK.
Configure Harmony
JavaScript
Send Transaction
Getting Test ONE token
Before you can send transaction on the Harmony blockchain, you’ll need to acquire some test ONE token (Harmony’s native cryptocurrency for test network).- Go to our Harmony Example application
- Login with your email address
- Copy your Harmony public address
- Go to the Harmony Faucet
- Paste your copied Harmony public address in the text input
- Now you can use your test ONE token in our example app
Call Extension Method
Note that the Magic Harmony extension follows the method names and conventions by Harmony’s JavaScript SDK. To send a standard Harmony blockchain transaction, you can call themagic.harmony.sendTransaction
method.
JavaScript
Smart Contract
Deploy Contract
Getting Test ONE token
Before you can send transaction on the Harmony blockchain, you’ll need to acquire some test ONE token (Harmony’s native cryptocurrency for test network).- Go to our Harmony Example application
- Login with your email address
- Copy your Harmony public address
- Go to the Harmony Faucet
- Paste your copied Harmony public address in the text input
- Now you can use your test ONE token in our example app
Call Extension Method
Note that the Magic Harmony extension follows the method names and conventions by Harmony’s JavaScript SDK. To deploy an Harmony smart contract, you can call themagic.harmony.sendTransaction
method to send deploy contract transaction.
JavaScript
Contract Send
Getting Test ONE token
Before you can send transaction on the Harmony blockchain, you’ll need to acquire some test ONE token (Harmony’s native cryptocurrency for test network).- Go to our Harmony Example application
- Login with your email address
- Copy your Harmony public address
- Go to the Harmony Faucet
- Paste your copied Harmony public address in the text input
- Now you can use your test ONE token in our example app
Call Extension Method
Note that the Magic Harmony extension follows the method names and conventions by Harmony’s JavaScript SDK. To call an Harmony smart contract function, you can call themagic.harmony.sendTransaction
method to send contract transaction.
JavaScript
Compatibility
- All
Auth
,User
and mostWallet
module methods* - All EVM Provider functionality to respond to supported RPC methods
- Widget UI for token balances and token transfers*
Resources & Tools
- Documentation: https://docs.harmony.one/home/
- Block Explorer: https://explorer.harmony.one/ (Mainnet)
- Faucet: https://onefaucet.ibriz.ai/
- Example