@quantara/sdk
Version:
JavaScript/TypeScript SDK for interacting with Quantara Protocol on Neura Testnet
18 lines (17 loc) • 826 B
TypeScript
import { Abi, Address, PublicClient } from "viem";
import type { QuantaraSdk } from "../index";
export declare function getGasPrice(client: PublicClient, chainId: number): Promise<{
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
gasPrice?: undefined;
} | {
gasPrice: bigint;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
}>;
export declare function getGasLimit(client: PublicClient, account: Address, contractAddress: Address, abi: Abi, method: string, params?: any[], value?: bigint | number): Promise<bigint>;
export interface CallContractOpts {
value?: bigint | number;
gasLimit?: bigint | number;
}
export declare function callContract(sdk: QuantaraSdk, contractAddress: Address, abi: Abi, method: string, params: any[], opts?: CallContractOpts): Promise<`0x${string}`>;