Essential JSON-RPC Methods
Method alias
Developers intending to deploy a module must assign aliases to methods based on their specific functionalities.
For example, a method responsible for transferring funds should be given the alias anam_sendFunds
, a method that retrieves account balances should use the alias anam_getBalance
, and a method for creating accounts and generating keystores should be assigned the alias anam_newAccount
.
1. anam_newAccount
Function: Create a new account (Keystore)
Description: Decrypts the double-encrypted password using RSA/AES to generate a Keystore file.
2. anam_getBalance
Function: Check the balance of a specific address
3. anam_sendFunds
Function: Internal fund transfer function within AnamWallet
Description: When a user inputs the requested component elements, it queries the account with the provided values, creates a RawTransaction, signs it, and sends it.
These three methods are the core components that perform the most basic wallet functions of account creation, balance checking, and fund transfer in AnamWallet. Each method is invoked in the form of JSON-RPC and is handled securely within a multi-process architecture.
anam_sendFunds
send Money
eth_sendTransaction
anam_newAccount
create new keyStore file
eth_createWallet
anam_getBalance
view cryptocurrency balance
eth_getBalance
Last updated