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

Start building today!     

Contents

getHighestSnapshotSlot RPC Method

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

Please note that this method is only available in solana-core v1.9 or newer. Please use getSnapshotSlot for solana-core v1.8

Parameters:

  1. None

Returns:

  1. result - The result will be an object with the following fields:

    full - The highest fullsnapshot slot encoded as 64-bit unsigned integer

    incremental - The greatest incremental snapshot slot derived from the full snapshot

Code Examples:

// not currently supported by solanaJS
const axios = require("axios");
(() => {
  const config = {
    headers: {
      "Content-Type": "application/json",
    },
  };
  const data = {
    jsonrpc: "2.0",
    id: 1,
    method: "getHighestSnapshotSlot",
  };
  axios
    .post("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/", data, config)
    .then(function (response) {
      // handle success
      console.log(response.data);
    })
    .catch((err) => {
      // handle error
      console.log(err);
    });
})();
Ready to get started? Create a free account