Skip to Content
DocsLearn more about AvailGet started with Avail's explorers

Get started with Avail’s explorers

The Avail network has two main explorers that can be used to browse the network:

  1. Avail Apps explorer : A dev-focussed explorer with powerful tools to work with the network.
  2. Subscan explorer : A simpler, and recommended way to explore the network for most users.

This tutorial will focus on helping advanced users and devs get started with the Avail Apps Explorer.

Switch networks

The Avail Apps explorer currently supports Avail mainnet  and Avail Turing testnet .

To switch networks:

  1. Click on the Network name on the top-left.

  1. Depending on the network you are on, click on live networks -> Avail DA network, or test network -> Avail Turing testnet.

  2. Click on Switch.


Look up the details of a particular transaction

  1. Due to how the network is designed, it is not possible for the AvailApps explorer to query a transaction’s details using just it’s hash directly from a node.

  2. The Subscan explorer however, makes it possible to do so, since it queries from a dedicated indexer built on top of Avail to support this feature.

Search for a txn using it’s block number/block hash AND it’s transaction hash
👇👇👇

  1. Search for the block number or block hash of the block your transaction was included in.

  1. The explorer then fetches all transactions from that specific block. Click on the hash of the transaction you are interested in to get a detailed view.

Create accounts within the explorer

The AvailApps explorer can be used to add or import Avail accounts into the explorer.

To go to the page, click on the Accounts tab on the top-left, or click this link .

  1. The accounts section shows any accounts created straight from the explorer. You don’t need any wallet extensions to create or use them.
  2. The extension section shows any accounts connected to the explorer from wallets like Polkadot.js, Subwallet, Talisman, etc…

The following gif shows you how to create an account straight from the explorer:


You can do a few things here:

  1. Create a new account using a mnemonic or by clicking on the + Account button.
  2. Import an account via an encrypted JSON file.
  3. Connect extension accounts from wallets like Polkadot.js, Subwallet, Talisman, etc…
  4. Create a multisig account. We have covered instructions to do so in our docs here.
  5. Create a proxy account. We have covered instructions to do so in our docs here.
  6. The AvailApps explorer also allows you to use hardware wallets to safely connect cold accounts. We have covered instructions to do so in our docs here.

Any of these accounts that you connect can be used to sign transactions on the network. Which is something we will cover in the next section.

Using the explorers to interact with the network

Wrt interacting with the network, the AvailApps explorer can be used to:

  1. Query data from the network by calling Chain State or RPC methods.
  2. Send transactions to the network by signing and submitting Extrinsics.

You can find them within the Developer tab.


WHAT ARE PALLETS?
Avail organizes its runtime functionality into pallets. Each pallet is a collection of calls and extrinsics of a specific functionality. For example, the data_availability pallet contains all the calls and extrinsics related to querying and submitting data to the network, and so on. Some methods might be grouped into seemingly unrelated pallets for technical reasons, but this largely holds true.

To look for a particular method within the AvailApps explorer, you need to know the pallet it belongs to.

How to use the explorer to query the network

Let us learn how to query the network using the AvailApps explorer by querying the balance of an account.

  1. Either go to the Chain State methods menu from within the Developer tab or click on this link .

  2. The balance of an account can be queried by calling the account(AccountId32) method from within the system pallet. Select the system pallet from the dropdown on the left, and the account(AccountId32) method from the dropdown on the right.


THE include option TOGGLE
This toggle allows you to enter params for a method when it is toggled on. You can also call methods without passing a param by keeping it off.
But system_account method won’t return anything without an AccountId32 param being passed to it, so we will keep it on.
Hot tip: Try calling the dataAvailability_appKeys method with the include option toggle off to see what happens.

  1. Either paste the address of an account in the AccountId32 field or select an explorer-connected account from the dropdown.

  2. Leave the blockhash field empty (This will query the latest balance of the account), and click on the + button near the top-right.


  1. And that’s it. You just used the AvailApps explorer to query the balance of an account on the Avail network. You can query other methods in a similar way.

How to use the explorer to send transactions to the network

You can also use the AvailApps explorer to sign custom transactions/extrinsics and submit them to the network. We have covered different examples of doing so in our docs. Here is one of them:

Submit data to a particular AppID by submitting a dataAvailability_submitData extrinsic.

Bonus: How to query chain constants using the explorer

  1. The AvailApps explorer allows you to query the current values of all of it’s runtime constants by going to the constants tab within Developer -> Chain State.

  1. For example, to query the current value of the existentialDeposit of an account on Avail, which is the minimum amount required by an account to exist on the network, you can call the balances_existentialDeposit constant.

P.S: The balance displayed is in attoAVAIL. 1 attoAVAIL = 10−1810^{-18} AVAIL.

  1. You can look up any other constant in a similar way.

Wrapping up

We will update this page with more examples and information as we go along. Feel free to join our Discord  and suggest any additions that you would like to see here.

Last updated on