For illustration purposes, Metamask is used but this guide should be applicable to any JSON-RPC enabled wallet.
- Open Metamask and click on the circle in the upper right corner
- Select
Settings
->Networks
->Add Network
- Populate
Network Name
as desired - Fill in
New RPC URL
for the relay you are connecting to - Enter proper
Chain ID
, ensure no error message is seen and that the id matches - Fill in a
Currency Symbol
The panel should be populated similar to the following:
In order to get started you will need to have created a Hedera account with sufficient balance to pay for the following transactions.
Aliased accounts matching the private keys will need to be created in order to properly sign transactions.
You can create an aliased account by executing account-alias-ecdsa.js. You will need to setup your docs/examples/.env
file with you account id and private key. It is not recommended to run this on mainnet as this will print private keys to the command line. This is for demonstration purposes only.
Record the raw private keys that are printed to the command line.
Aliased accounts containing tokens and matching the private keys will need to be created in order to properly sign transactions.
You can create two aliased accounts with token balances by executing token-transfer-setup.js. You will need to setup your docs/examples/.env
file with you account id and private key. It is not recommended to run this on mainnet as this will print private keys to the command line. This is for demonstration purposes only.
Record the raw private keys that are printed to the command line as well as the Ethereum Token Address.
Repeat this process for every account you wish to import:
- Copy the raw private key of an account to be imported
- Click on the circle in the upper right corner
- Select
Import Account
- Paste your private key into the field and click
Import
- Verify that the balance loads successfully
- Open the receiving account in metamask and copy the address using the button below the account nickname
- Go to the sending account and click
Send
- Paste the address into the
Send to
bar
- Enter in a valid amount to send to the account into the
Amount
field and clickNext
- Click
Confirm
on the next panel after the gas values populate
- Transaction will transition to pending
- Wait a few seconds for the transaction to confirm and the balance should decrease
- Verify the updated balance in the receiving account.
- Select
Assets
for the account with token you have previously imported
- Click
Import tokens
- Copy Ethereum Token Address from account
- Paste into
Token Contract Address
Token Symbol
andToken Decimal
should autopopulate from the network
- Click
Add Custom Token
- The balance should update for the token, then select
Import Tokens
- Open the receiving account in metamask and copy the address using the button below the account nickname
- Go to the sending account and click
Send
- Paste the address into the
Send to
bar
- Under
Asset
select the desired token. For the Demo this isD
- Enter a valid amount to send to the account into the
Amount
field and clickNext
- Click
Confirm
on the next panel after the gas values populate
- Transaction will transition to pending
- Wait a few seconds for the transaction to confirm
- Verify the balance has decreased by the expected amount of the asset previously selected
- Verify the updated balance in the receiving account.