UNPKG

@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

25 lines (21 loc) 694 B
import { RequestErrorType } from "viem/utils"; /** * Return type for the info.getNodeID method. * @property nodeID - The unique identifier of the node * @property nodePOP - The node's BLS key and proof of possession * @property nodePOP.publicKey - The 48 byte hex representation of the BLS key * @property nodePOP.proofOfPossession - The 96 byte hex representation of the BLS signature */ export type GetNodeIDReturnType = { nodeID: string; nodePOP: { publicKey: string; proofOfPossession: string; }; }; export type GetNodeIDErrorType = RequestErrorType; export type GetNodeIDMethod = { Method: "info.getNodeID"; Parameters: {}; ReturnType: GetNodeIDReturnType; };