Skip to main content

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

NameTypeDescription
providerJsonRPCInjected 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>

Defined in

bee-js/src/utils/eth.ts:195