blockchain-api
Version:
API utilities for interacting with the Exatechl2 blockchain
9 lines (8 loc) • 381 B
TypeScript
/**
* Make an RPC call to the blockchain
* @template T - The expected return type
* @param {string} method - The RPC method to call
* @param {unknown[]} params - The parameters for the RPC method
* @returns {Promise<T>} - A promise that resolves with the result of the RPC call
*/
export declare function callRpc<T = unknown>(method: string, params?: unknown[]): Promise<T>;