📔
Blockchain API guides
  • Welcome to Data123 Documents!
  • Quick Start
  • Reference
    • API Reference
      • Aleo
        • RPC Methods
          • Latest Height
          • Latest Hash
          • Latest Block
          • Latest State Root
          • Get Block
          • Get Blocks
          • Get Block Transactions
          • Get Transaction
          • Get Confirmed Transaction
          • Get Memory pool Transactions
          • Get Progrem
          • Get Mapping Names
          • Get Mapping Value
          • Get State Path For Commitment
          • Find Block Hash
          • Find Transaction ID From Program ID
          • Find Transaction ID From Transition ID
          • Find Transition ID
          • Get Environment Info
          • Transaction Broadcast
      • Drand
        • JSON-RPC Methods
      • Filecoin
        • JSON-RPC Methods
      • Ethereum
        • JSON-RPC Methods
      • Starknet
Powered by GitBook
On this page
  • ENDPOINT
  • Arguments
  • Response
  • Request
  1. Reference
  2. API Reference
  3. Aleo
  4. RPC Methods

Get State Path For Commitment

Get the state path for the given commitment. The state path proves existence of the transition leaf to either a global or local state root.

ENDPOINT

GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/statePath/{commitment}

Arguments

Parameter
Type
Request
Description

commitment

string

Yes

The record commitment in the best valid chain

Response

Parameter
Type
Description

global_state_root

string

The global state root

block_path

string

The Merkle path for the block hash

block_hash

string

The block hash

previous_block_hash

string

The previous block hash

header_root

string

The block header root

header_path

string

The Merkle path for the block header leaf

header_leaf

string

The block header leaf

transactions_path

string

The Merkle path for the transaction ID

transaction_id

string

The transaction ID

transaction_path

string

The Merkle path for the transaction leaf

transaction_leaf

string

The transaction leaf

transition_path

string

The Merkle path for the transition leaf

transition_leaf

string

The transition leaf

Request

curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/statePath/{commitment}

PreviousGet Mapping ValueNextFind Block Hash

Last updated 1 year ago