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
| Parameter | Type |
|---|---|
account | Signer |
address | string |
chainInterface | EVMChainInterface |
directory | string |
minFeeIncreaseAbsolute? | bigint |
minFeeIncreasePpm? | bigint |
waitBeforeBumpMillis? | number |
Returns
EVMPersistentSigner
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
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
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
| Parameter | Type |
|---|---|
transaction | TransactionRequest |
onBeforePublish? | (txId, rawTx) => Promise<void> |
Returns
Promise<TransactionResponse>
Inherit Doc
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>
Inherit Doc
Inherited from
stop()
stop(): Promise<void>;
Defined in: atomiq-chain-evm/src/evm/wallet/EVMPersistentSigner.ts:276
Returns
Promise<void>