Skip to main content

EVMSigner

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:10

EVM signer implementation wrapping an ethers Signer, for browser-based wallet use EVMBrowserSigner.

Extended by

Implements

Constructors

Constructor

new EVMSigner(
account,
address,
isManagingNoncesInternally): EVMSigner;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:45

Constructs a signer wrapping an ethers Signer.

Parameters

ParameterTypeDefault valueDescription
accountSignerundefined
addressstringundefined
isManagingNoncesInternallybooleanfalse

Returns

EVMSigner

Properties

account

account: Signer;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:34


address

readonly address: string;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:35


isManagingNoncesInternally

readonly isManagingNoncesInternally: boolean;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:36


type

type: "AtomiqAbstractSigner";

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:32

Implementation of

AbstractSigner.type

Methods

getAddress()

getAddress(): string;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:54

Returns

string

Inherit Doc

Implementation of

AbstractSigner.getAddress

getReproducibleEntropyMessage()

static getReproducibleEntropyMessage(appName): string;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:28

Returns a static message, which should be signed by the EVM wallets to generate reproducible entropy. Works when wallets use signing with deterministic nonce, such that signature over the same message always yields the same signature (same entropy).

Parameters

ParameterTypeDescription
appNamestringApplication name to differentiate reproducible entropy generated across different apps

Returns

string


sendTransaction()

sendTransaction(transaction, onBeforePublish?): Promise<TransactionResponse>;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:68

Parameters

ParameterType
transactionTransactionRequest
onBeforePublish?(txId, rawTx) => Promise<void>

Returns

Promise<TransactionResponse>

Inherit Doc


signTransaction()?

optional signTransaction(transaction): Promise<string>;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:61

Parameters

ParameterType
transactionTransactionRequest

Returns

Promise<string>

Inherit Doc