RPC Methods
Ethereum RPCs implemented in the imToken application.
Last updated
Was this helpful?
Ethereum RPCs implemented in the imToken application.
Last updated
Was this helpful?
Here is the list of all Ethereum RPCs currently supported by the imToken App, for more information you can also refer to .
imToken's DApp browser , we only inject the Provider
.(you can get it using window.ethereum
) For more information on how to start connecting to your wallet using Provider
, please refer to:
Our
MetaMask documentation:
Or refer to the following simplified code:
This method is specified by .
Requests that the user provides an Ethereum address to be identified by.
Returns
string[]
- An array of a single, hexadecimal Ethereum address string.
alias: personal_sign
, eth_signTypedData
, eth_signTypedData_v3
eth_signTypedData_v4
An API for adding Ethereum chains to wallet applications.
API wallet_addEthereumChain
only works on versions higher than 2.8.4
.
Returns
null
- The method returns null
if the request was successful, and an error otherwise.
Params
Example
An RPC method for switching the wallet’s active Ethereum chain.
API wallet_switchEthereumChain
only works on versions higher than 2.10.0
.
Returns
null
- The method returns null
if the request was successful, and an error otherwise.
Params
Example
Use ethereum.request({ method: 'eth_requestAccounts' })
instead.
Use ethereum.request()
instead.
Use ethereum.request()
instead.
Use personal_sign
instead.
This RPC interface is not currently implemented in imToken.
This method is specified by .
This method is specified by .
Please refer to the for the differences between the signature methods.
This method (personal_sign
) is similar to eth_sign
, but has better security, see for details.
This method is specified by .
This method is specified by .
This method is specified by
This method is specified by .
This method is specified by .
If you need to leave feedback or request help from the developers, please create a topic in the .