interface TzReadProvider {
    getAdaptiveIssuanceLaunchCycle(block: BlockIdentifier): Promise<AILaunchCycleResponse>;
    getBalance(address: string, block: BlockIdentifier): Promise<BigNumber>;
    getBigMapValue(bigMapQuery: BigMapQuery, block: BlockIdentifier): Promise<MichelsonV1Expression>;
    getBlock(block: BlockIdentifier): Promise<BlockResponse>;
    getBlockHash(block: BlockIdentifier): Promise<string>;
    getBlockLevel(block: BlockIdentifier): Promise<number>;
    getBlockTimestamp(block: BlockIdentifier): Promise<string>;
    getChainId(): Promise<string>;
    getCounter(pkh: string, block: BlockIdentifier): Promise<string>;
    getDelegate(address: string, block: BlockIdentifier): Promise<null | string>;
    getEntrypoints(contract: string): Promise<EntrypointsResponse>;
    getLiveBlocks(block: BlockIdentifier): Promise<string[]>;
    getNextProtocol(block: BlockIdentifier): Promise<string>;
    getProtocolConstants(block: BlockIdentifier): 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[];
    }>;
    getSaplingDiffByContract(contractAddress: string, block: BlockIdentifier): Promise<SaplingDiffResponse>;
    getSaplingDiffById(saplingStateQuery: SaplingStateQuery, block: BlockIdentifier): Promise<SaplingDiffResponse>;
    getScript(contract: string, block: BlockIdentifier): Promise<ScriptedContracts>;
    getStorage(contract: string, block: BlockIdentifier): Promise<MichelsonV1Expression>;
    isAccountRevealed(publicKeyHash: string, block: BlockIdentifier): Promise<boolean>;
}

Implemented by

Methods

  • Parameters

    Returns Promise<AILaunchCycleResponse>

    Returns the cycle at which the launch of the Adaptive Issuance feature is set to happen. A result of null means that the feature is not yet set to launch.

  • Parameters

    • address: string

      address from which we want to retrieve the balance

    • block: BlockIdentifier

      from which we want to retrieve the balance

    Returns Promise<BigNumber>

    the balance in mutez

    Access the spendable balance of a contract, excluding frozen bonds.

  • Parameters

    • bigMapQuery: BigMapQuery

      Big Map ID and Expression hash to query (A b58check encoded Blake2b hash of the expression)

    • block: BlockIdentifier

      from which we want to retrieve the big map value

    Returns Promise<MichelsonV1Expression>

    Access the value associated with a key in a big map.

  • Parameters

    • address: string

      contract address from which we want to retrieve the delegate (baker)

    • block: BlockIdentifier

      from which we want to retrieve the delegate

    Returns Promise<null | string>

    the public key hash of the delegate or null if no delegate

    Access the delegate of a contract, if any.

  • Parameters

    • contract: string

      address of the contract we want to get the entrypoints of

    Returns Promise<EntrypointsResponse>

    Return the list of entrypoints of the contract

  • Parameters

    Returns Promise<string[]>

    Return a list of the ancestors of the given block which, if referred to as the branch in an operation header, are recent enough for that operation to be included in the current block.

  • 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

    • contractAddress: string

      The address of the smart contract

    • block: BlockIdentifier

      The block you want to retrieve the sapling state from

    Returns Promise<SaplingDiffResponse>

    Access the sapling state of a smart contract.

  • 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

    • contract: string

      contract address from which we want to retrieve the storage

    • block: BlockIdentifier

      from which we want to retrieve the storage value

    Returns Promise<MichelsonV1Expression>

    Access the storage of a contract