@blockbolt/monad-wallet
Version:
BlockBolt package for Monad wallet
35 lines • 1.2 kB
TypeScript
import { type Account, type Hash } from "viem";
import { PaymentDetails, TransactionResult } from "./types";
export declare class BlockBolt {
private publicClient;
private walletClient;
private contractAddress;
/**
* Initialize the BlockBolt
* @param contractAddress - The address of the payment contract
*/
constructor();
/**
* Make a payment using the Monad contract
* @param account - The account that will sign the transaction
* @param paymentDetails - Details of the payment to be made
* @returns Transaction hash
*/
makePayment(account: Account, paymentDetails: PaymentDetails): Promise<TransactionResult>;
/**
* Get the transaction status
* @param hash - Transaction hash to check
*/
getTransactionStatus(hash: Hash): Promise<{
status: "success" | "reverted";
blockNumber: bigint;
logs: import("viem").Log<bigint, number, false>[];
receipt: import("viem").TransactionReceipt;
}>;
/**
* Get the explorer URL for a transaction
* @param hash - Transaction hash
*/
getExplorerUrl(hash: Hash): string;
}
//# sourceMappingURL=blockbolt.d.ts.map