Function: makeEthereumWalletSigner
Utils.makeEthereumWalletSigner
▸ makeEthereumWalletSigner(provider
, ethAddress?
): Promise
<Signer
>
Function that takes Ethereum EIP-1193 compatible provider and create an Signer instance that
uses personal_sign
method to sign requested data.
Parameters
Name | Type | Description |
---|---|---|
provider | JsonRPC | Injected web3 provider like window.ethereum or other compatible with EIP-1193 |
ethAddress? | string | HexEthAddress | HexString <number > | Optional address of the account which the data should be signed with. If not specified eth_requestAccounts request is used to get the account address. |
Returns
Promise
<Signer
>