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

    Interface BlockchainClient

    Blockchain client facade.

    The main entry point for all blockchain operations, composing transaction and query clients into a unified interface. This is the primary API surface exposed to SDK users.

    // Query action parameters
    const params = await blockchain.Action.getParams();

    // Simulate a transaction
    const gas = await blockchain.Tx.simulate(address, [msg]);

    // Sign and broadcast
    const result = await blockchain.Tx.signAndBroadcast(
    address,
    [msg],
    { amount: [{ denom: "ulume", amount: "5000" }], gas: "200000" }
    );
    interface BlockchainClient {
        Action: ActionQuery;
        Supernode: SupernodeQuery;
        Tx: TxClient;
        getAddress(): Promise<string>;
        getChainId(): Promise<string>;
    }

    Implemented by

    Index

    Properties

    Action: ActionQuery

    Action module queries (params, action records)

    Supernode: SupernodeQuery

    Supernode module queries (params)

    Transaction operations (simulate, broadcast, sign)

    Methods

    • Get the signer's address.

      Returns the bech32 address of the account associated with this client.

      Returns Promise<string>

      Bech32 address

    • Get the chain ID.

      Returns the identifier for the blockchain network (e.g., "lumera-testnet-2").

      Returns Promise<string>

      Chain ID