Converts calls from TzReadProvider into calls to the wrapped RpcClient in a format it can understand.

Implements

Constructors

Methods

  • Parameters

    • address: string

      address from which we want to retrieve the spendable balance

    • block: BlockIdentifier

      from which we want to retrieve the balance

    Returns Promise<BigNumber>

    the balance in mutez

    The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'spendable' RPC.

  • Parameters

    Returns Promise<{
        cost_per_byte: BigNumber;
        hard_gas_limit_per_block: BigNumber;
        hard_gas_limit_per_operation: BigNumber;
        hard_storage_limit_per_operation: BigNumber;
        minimal_block_delay?: BigNumber;
        smart_rollup_origination_size: number;
        time_between_blocks?: BigNumber[];
    }>

    Access protocol constants used in Taquito

  • Parameters

    • contract: string

      contract address from which we want to retrieve the script

    • block: BlockIdentifier

      from which we want to retrieve the storage value

    Returns Promise<ScriptedContracts>

    Note: The code must be in the JSON format and not contain global constant

    Access the script (code and storage) of a smart contract

  • Parameters

    • address: string

      address from which we want to retrieve the spendable balance

    • block: BlockIdentifier

      from which we want to retrieve the balance

    Returns Promise<BigNumber>

    the balance in mutez

    The spendable balance of a contract (in mutez), also known as liquid balance. Corresponds to tez owned by the contract that are neither staked, nor in unstaked requests, nor in frozen bonds. Identical to the 'balance' RPC.