Skip to main content

EVMPersistentSigner

Defined in: atomiq-chain-evm/src/evm/wallet/EVMPersistentSigner.ts:25

A robust EVM signer implementation with internal nonce management, automatic rebroadcasting and fee bumping. Uses Node.js fs to persist transaction data across restarts, so it is intended for backend runtimes.

Extends

Constructors

Constructor

new EVMPersistentSigner(
account,
address,
chainInterface,
directory,
minFeeIncreaseAbsolute?,
minFeeIncreasePpm?,
waitBeforeBumpMillis?): EVMPersistentSigner;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMPersistentSigner.ts:51

Parameters

ParameterType
accountSigner
addressstring
chainInterfaceEVMChainInterface
directorystring
minFeeIncreaseAbsolute?bigint
minFeeIncreasePpm?bigint
waitBeforeBumpMillis?number

Returns

EVMPersistentSigner

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


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


init()

init(): Promise<void>;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMPersistentSigner.ts:259

Returns

Promise<void>

Inherit Doc


sendTransaction()

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

Defined in: atomiq-chain-evm/src/evm/wallet/EVMPersistentSigner.ts:287

Parameters

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

Returns

Promise<TransactionResponse>

Inherit Doc

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


stop()

stop(): Promise<void>;

Defined in: atomiq-chain-evm/src/evm/wallet/EVMPersistentSigner.ts:276

Returns

Promise<void>

Inherit Doc