Skip to main content

EVMBrowserSigner

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

Browser-based EVM signer, intended for injected/external wallets. This ensures no explicit signTransaction() flow is required and transaction submission goes through sendTransaction().

Extends​

Constructors​

Constructor​

new EVMBrowserSigner(
account,
address,
usesECDSADN?): EVMBrowserSigner;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMBrowserSigner.ts:23

Parameters​

ParameterTypeDescription
accountSignerSigner account to request signatures and send transaction through
addressstringSigner address
usesECDSADN?booleanOptional flag indicating whether the signer supports signing using ECDSA-DN (deterministic nonce) algorithm, this allows the wallet to produce reproducible entropy. Only pass true here if you are 100% sure that the signer supports this!

Returns​

EVMBrowserSigner

Overrides​

EVMSigner.constructor

Properties​

account​

account: Signer;

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

Inherited from​

EVMSigner.account


address​

readonly address: string;

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

Inherited from​

EVMSigner.address


getReproducibleEntropy()?​

optional getReproducibleEntropy: (appName) => Promise<Buffer<ArrayBufferLike>>;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMBrowserSigner.ts:14

Parameters​

ParameterType
appNamestring

Returns​

Promise<Buffer<ArrayBufferLike>>


isManagingNoncesInternally​

readonly isManagingNoncesInternally: boolean;

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

Inherited from​

EVMSigner.isManagingNoncesInternally


type​

type: "AtomiqAbstractSigner";

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

Inherited from​

EVMSigner.type

Methods​

getAddress()​

getAddress(): string;

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

Returns​

string

Inherit Doc​

Inherited from​

EVMSigner.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

Inherited from​

EVMSigner.getReproducibleEntropyMessage


sendTransaction()​

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

Defined in: atomiq-chain-evm/src/evm/wallet/EVMBrowserSigner.ts:55

Signs and sends the provided EVM transaction. Maps common wallet rejection errors to a consistent user-facing message.

Parameters​

ParameterTypeDescription
transactionTransactionRequestA transaction to sign and send
onBeforePublish?(txId, rawTx) => Promise<void>Optional callback called after signing and before broadcast when available

Returns​

Promise<TransactionResponse>

Overrides​

EVMSigner.sendTransaction


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​

Inherited from​

EVMSigner.signTransaction