ethstorage-sdk-ts
Version:
eip-4844 blobs upload sdk from ethstorage-sdk
14 lines (13 loc) • 646 B
TypeScript
import { TransactionRequest, ethers } from "ethers";
export declare class BlobUploader {
#private;
constructor(rpc: string, pk: string | ethers.SigningKey);
getNonce(): Promise<number>;
getBlobGasPrice(): Promise<bigint>;
getGasPrice(): Promise<ethers.FeeData>;
estimateGas(params: any): Promise<bigint | null>;
sendTx(tx: TransactionRequest, blobs: any[]): Promise<ethers.TransactionResponse>;
getBlobHash(blob: any): Promise<string>;
isTransactionMined(transactionHash: string): Promise<ethers.TransactionReceipt | undefined>;
getTxReceipt(transactionHash: string): Promise<ethers.TransactionReceipt>;
}