Blockchain

The Blockchain endpoint provides essential information about the current state of the Mainsail blockchain, including details about the latest block and the total supply of the cryptocurrency.

Properties

  • Name
    block
    Type
    object
    Description

    Contains information about the latest block in the blockchain.

  • Name
    block.number
    Type
    integer
    Description

    The height of the latest block.

  • Name
    block.hash
    Type
    string
    Description

    The unique identifier of the latest block.

  • Name
    supply
    Type
    string
    Description

    The total supply of the cryptocurrency in the blockchain.


GET/blockchain

Get Blockchain Information

The Public API may be used to retrieve information about the current state of the blockchain, including the latest block and the total supply of the cryptocurrency.

Request

GET
/blockchain
curl https://testnet.mainsailhq.com/api/blockchain

Response

{
  "data": {
    "block": {
      "number": 75003,
      "hash": "d19814f78e98370717d419db127d012d325b1399a548d24b508932c7ec95fe39"
    },
    "supply": "124999999999999999999999959"
  }
}