API to check transaction fees
Last updated
Last updated
API to calculate transaction fees for a particular transaction amount while transferring tokens from the sender account to the receiver account.
Step 1
Open the file at src/4-transfer-tokens/0-transaction-fees.ts
Configure your account address, and mnemonic generated from previous chapters in the SENDER_ACCOUNT and SENDER_MNEMONIC variables below.
Create one more wallet account using API : create wallet account, keep a note of it and use it in the variable RECEIVER_ACCOUNT below.
Step 2 Run the file at the path below, also refer to the Github link attached below.
Note: Inline comments are in the code to understand the functionality and API.
Sample output