AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

getFirstAvailableBlock RPC Method

The API credit value for this method is 3 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. None

Returns:

  1. result - An integer slot of the lowest confirmed block as u64 (64-bit unsigned integer) integer

Code Examples:

const web3 = require("@solana/web3.js");
(async () => {
  const solana = new web3.Connection("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/");
  console.log(await solana.getFirstAvailableBlock());
})();
Ready to get started? Create a free account