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

16 lines
864 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;
readonly provider: ethers.providers.Provider;
_transactionCount: Promise<number>;
constructor(signer: ethers.Signer);
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>;
}