@avalanche-sdk/client
Version:
A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa
19 lines (15 loc) • 470 B
text/typescript
import { RequestErrorType } from "viem/utils";
/**
* Return type for the `platform.getTimestamp` method.
* Get the current timestamp of the P-Chain.
* @property timestamp - The current timestamp in ISO 8601 format
*/
export type GetTimestampReturnType = {
timestamp: string;
};
export type GetTimestampErrorType = RequestErrorType;
export type GetTimestampMethod = {
Method: "platform.getTimestamp";
Parameters: {};
ReturnType: GetTimestampReturnType;
};