EVM Precompiles
Pointerview

Pointer Precompile

Address: 0x000000000000000000000000000000000000100A

This precompile enables EVM clients to query pointers to the CosmWasm contracts.

Functions

Queries

  • getNativePointer: Retrieves the pointer address, version, and existence status for the specified native token.

      /// Retrieves the pointer address, version, and existence status for the specified native token.
      /// @param token The native token to query.
      /// @return the address, version, and existence status.
      function getNativePointer(
          string memory token
      ) view external returns (address addr, uint16 version, bool exists);
  • getCW20Pointer: Retrieves the pointer address, version, and existence status for the specified CW20 contract address.

    /// Retrieves the pointer address, version, and existence status for the specified CW20 contract address.
    /// @param cwAddr The CW20 contract address to query.
    /// @return the address, version, and existence status.
    function getCW20Pointer(
        string memory cwAddr
    ) view external returns (address addr, uint16 version, bool exists);
  • getCW721Pointer: Retrieves the pointer address, version, and existence status for the specified CW721 contract address.

    /// Retrieves the pointer address, version, and existence status for the specified CW721 contract address.
    /// @param cwAddr The CW721 contract address to query.
    /// @return the address, version, and existence status.
    function getCW721Pointer(
        string memory cwAddr
    ) view external returns (address addr, uint16 version, bool exists);

View the PointerView precompile source code and the contract ABI here (opens in a new tab).