Public
Documentation Settings

Substrate API Sidecar

Accounts

Introduction

Substrate Sidecar is a REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

The full API documentation for Sidecar can be found at https://paritytech.github.io/substrate-api-sidecar/dist/.

Using the Postman Collection

This Postman collection makes available all the endpoints exposed by Sidecar for your Substrate blockchain within Postman.

To use this collection, create a new Postman environment. You can name your new environment whatever you prefer, for example: Dev.

Within the environment you need to define environment variables that are used in the various endpoints. They include:

  • url - The URL for your Sidecar REST API. The default local value to define is: http://127.0.0.1:8080
  • account - The account ID of a specific user on the blockchain
  • number - The number of a specific block from the blockchain
  • extrensicIndex - The index number of a specific extrensic on a block
  • assetId - The ID of an pallet asset
  • storageItemId - The ID of a pallet storage item
  • paraId - The ID of a specific parachain

GETGET Account Asset Balance

http://127.0.0.1:8080/accounts/00000/asset-balances

GETGET Account Asset Approvals

GETGET Account Balance Info

Loading