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
| Parameter | Type | Description |
|---|---|---|
account | Signer | Signer account to request signatures and send transaction through |
address | string | Signer address |
usesECDSADN? | boolean | Optional 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
Properties
account
account: Signer;
Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:34
Inherited from
address
readonly address: string;
Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:35
Inherited from
getReproducibleEntropy()?
optional getReproducibleEntropy: (appName) => Promise<Buffer<ArrayBufferLike>>;
Defined in: atomiq-chain-evm/src/evm/wallet/EVMBrowserSigner.ts:14
Parameters
| Parameter | Type |
|---|---|
appName | string |
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
Methods
getAddress()
getAddress(): string;
Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:54
Returns
string
Inherit Doc
Inherited from
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
| Parameter | Type | Description |
|---|---|---|
appName | string | Application 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
| Parameter | Type | Description |
|---|---|---|
transaction | TransactionRequest | A transaction to sign and send |
onBeforePublish? | (txId, rawTx) => Promise<void> | Optional callback called after signing and before broadcast when available |
Returns
Promise<TransactionResponse>
Overrides
signTransaction()?
optional signTransaction(transaction): Promise<string>;
Defined in: atomiq-chain-evm/src/evm/wallet/EVMSigner.ts:61
Parameters
| Parameter | Type |
|---|---|
transaction | TransactionRequest |
Returns
Promise<string>