method: string;
params?: unknown[] | object;
Promise<unknown>
request
method to ask the user to connect to your dapp.request
method is the go to way for you to interface with the wallet in your dapp. It accepts most JSON RPC requests that would need to interact with the wallet. eth_getTransactionByHash
. If you send a method that the provider object does not support, it will throw an error. For a full list of errors, see Error messages and codes.