@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
28 lines (27 loc) • 920 B
TypeScript
/**
* Default service endpoints for Vana networks
*
* Centralizes default service URLs for different Vana networks.
* These can be overridden during SDK initialization.
*/
export interface ServiceEndpoints {
/** Block explorer URL for viewing transactions and addresses */
blockExplorerUrl: string;
/** RPC URL for blockchain interactions */
rpcUrl: string;
}
/**
* Default service endpoints for Vana Mainnet (chain ID: 1480)
*/
export declare const mainnetServices: ServiceEndpoints;
/**
* Default service endpoints for Moksha Testnet (chain ID: 14800)
*/
export declare const mokshaServices: ServiceEndpoints;
/**
* Retrieves the default service endpoints for a given chain ID
*
* @param chainId - The numeric chain ID
* @returns Service endpoints for the chain, or undefined if not supported
*/
export declare function getServiceEndpoints(chainId: number): ServiceEndpoints | undefined;