@lumera/sdk-js
    Preparing search index...

    Interface SupernodeQuery

    Supernode module query client interface.

    Provides read-only access to supernode module state via LCD/REST.

    interface SupernodeQuery {
        getParams(): Promise<SupernodeParams>;
        getSupernode(validatorAddress: string): Promise<SuperNode>;
        getSupernodeByAddress(supernodeAddress: string): Promise<SuperNode>;
        listSupernodes(): Promise<SuperNode[]>;
    }
    Index

    Methods

    • Get a supernode by validator address.

      Retrieves the details of a specific supernode from the blockchain.

      Parameters

      • validatorAddress: string

        The validator address of the supernode

      Returns Promise<SuperNode>

      Supernode record details

      If the query fails or supernode is not found

    • Get a supernode by supernode address.

      Retrieves the details of a specific supernode by its supernode account address.

      Parameters

      • supernodeAddress: string

        The supernode account address

      Returns Promise<SuperNode>

      Supernode record details

      If the query fails or supernode is not found