Interface NetworkURI

    Network endpoint URIs for connecting to Klever blockchain

    Provides different types of endpoints for various use cases:

    • api: Fast, cached data from indexer (recommended for most queries)
    • node: Direct node access for latest state
    • ws: Real-time updates via WebSocket
    • explorer: Block explorer for viewing blockchain data
    const uris: NetworkURI = {
    api: 'https://api.mainnet.klever.finance',
    node: 'https://node.mainnet.klever.finance',
    ws: 'wss://ws.mainnet.klever.finance',
    explorer: 'https://kleverscan.org'
    }
    interface NetworkURI {
        api?: string;
        explorer?: string;
        node?: string;
        ws?: string;
    }

    Properties

    Properties

    api?: string

    Indexer/Proxy API endpoint - provides indexed and parsed blockchain data (faster, cached)

    explorer?: string

    Block explorer URL for viewing transactions and addresses

    node?: string

    Direct node API endpoint - raw blockchain node access (slower, but always up-to-date)

    ws?: string

    WebSocket endpoint for real-time updates and subscriptions