EVM
Interacting with EVM Transactions using MoonSDK
Prerequisites
Installation
npm install @moonup/moon-sdk ethersInitialization
import { MoonSDK } from '@moonup/moon-sdk';
import { ethers } from 'ethers';
import { InputBody, BroadcastInput } from '@moonup/moon-api';Sending a Transaction without Encoded ABI Data
Step 1: Prepare the Transaction Data
Step 2: Sign the Transaction
Step 3: Broadcast the Signed Message to the Blockchain
Sending a Transaction with Encoded ABI Data
Step 1: Encode the ABI Data
Step 2: Prepare the Transaction Data
Step 2: Sign the Transaction
Step 3: Broadcast the Signed Message to the Blockchain
Creating and Listing Accounts
Creating an Account
Listing Accounts
Conclusion
Last updated