ethers.js/packages/experimental/lib/nonce-manager.d.ts

17 lines
884 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { ethers } from "ethers";
export declare class NonceManager extends ethers.Signer {
readonly signer: ethers.Signer;
2019-11-20 12:57:38 +03:00
_initialPromise: Promise<number>;
_deltaCount: number;
2019-05-15 01:48:48 +03:00
constructor(signer: ethers.Signer);
2020-04-04 05:13:06 +03:00
get provider(): ethers.providers.Provider;
2019-05-15 01:48:48 +03:00
connect(provider: ethers.providers.Provider): NonceManager;
getAddress(): Promise<string>;
getTransactionCount(blockTag?: ethers.providers.BlockTag): Promise<number>;
setTransactionCount(transactionCount: ethers.BigNumberish | Promise<ethers.BigNumberish>): void;
incrementTransactionCount(count?: number): void;
signMessage(message: ethers.Bytes | string): Promise<string>;
signTransaction(transaction: ethers.providers.TransactionRequest): Promise<string>;
sendTransaction(transaction: ethers.providers.TransactionRequest): Promise<ethers.providers.TransactionResponse>;
}