new EthereumWallet(): EthereumWallet
EthereumWallet
BaseEthereumWallet
.constructor
type:Defined in: packages/wallet-stamper/src/ethereum.ts:24 The type of the wallet.Ethereum
=WalletType.Ethereum
BaseEthereumWallet
.type
getPublicKey():Defined in: packages/wallet-stamper/src/ethereum.ts:40 Returns the public key, which is the SECP256K1 hex encoded public key from your Ethereum wallet.Promise
<string
>
Promise
<string
>
A promise that resolves to a string representing the compressed public key.
BaseEthereumWallet
.getPublicKey
signMessage(Defined in: packages/wallet-stamper/src/ethereum.ts:66 Signs a message and returns the hex signature as a string.message
):Promise
<`0x${string}`
>
string
The message to be signed, either as a string or a Hex.
Promise
<`0x${string}`
>
A promise that resolves to a Hex string representing the signature.
This method uses the ‘personal_sign’ method of the Ethereum provider
to sign the message with the user’s account.
BaseEthereumWallet
.signMessage