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

    Interface ActionQuery

    Action module query client interface.

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

    interface ActionQuery {
        getAction(actionId: string): Promise<ActionRecord>;
        getActionFee(dataSize: number): Promise<{ amount: string }>;
        getParams(): Promise<ActionParams>;
    }
    Index

    Methods

    • Get an action record by ID.

      Retrieves the details of a specific action from the blockchain.

      Parameters

      • actionId: string

        The unique identifier of the action

      Returns Promise<ActionRecord>

      Action record details

      If the query fails or action is not found

    • Get the action fee for a given data size.

      Queries the blockchain to calculate the required fee for an action based on the size of the data being stored.

      Parameters

      • dataSize: number

        Size of the data in bytes

      Returns Promise<{ amount: string }>

      Object containing the fee amount as a string

      If the query fails