@rarcifa/cronos-evm-client
Version:
A Node.js client library for interacting with the Cronos EVM, facilitating operations on both CRC20 and CRC721 tokens.
23 lines (22 loc) • 1.02 kB
TypeScript
import { Transaction } from '../lib/client/cronosClient.js';
import { AxiosInstance } from 'axios';
/**
* ethMethods integration for managing Ethereum RPC requests.
*
* @fileoverview This file provides helper functions for Ethereum JSON-RPC interactions.
* @namespace ethMethods
*/
export declare const cronosInstance: {
/**
* Fetches block information for a given block number.
*
* @param {number | string} blockNumber - The block number to fetch.
* @param {AxiosInstance} ethereumInstance - The Axios instance for making requests.
* @returns {Promise<{ number: string; timestamp: string }>} A promise that resolves to the block information.
*
* @example
* const blockInfo = await erc20.getBlockByNumber(123456, ethereumInstance);
*/
getUniqueTransactions: (address: string, startBlock: number, endBlock: number, instance: AxiosInstance) => Promise<Transaction[]>;
getBlockByTimestamp: (timestamp: number, instance: AxiosInstance) => Promise<number>;
};