Metacoin API
MetacoinMetaWallet Deeplink APIMetascanRedscan
Metacoin API(version 2.1)
Metacoin API(version 2.1)
  • Metacoin API
  • Quick Start
  • Reference
    • REST API Reference
      • Address
      • Block and transaction
      • Token
      • MRC400(NFT)
      • MRC402(NFT)
Powered by GitBook
On this page
  1. Reference
  2. REST API Reference

Block and transaction

Block information

PreviousAddressNextToken

Last updated 2 years ago

Good to know: All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.

Get last block info

get
Responses
200
successful operation
*/*
Responsestring

Last block number

get
GET /block/ HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
200

successful operation

text

Get Block info and Transaction ID in block

get
Path parameters
blockstringRequired

Block number or Block HASH

Responses
200
successful operation
*/*
404
Block not found
get
GET /block/{block} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
  "sn": 1,
  "id": "text",
  "timestamp": 1,
  "transaction": [
    {
      "id": "text",
      "timestamp": 1
    }
  ]
}

Get Transaction info

get
Path parameters
transaction_idstringRequired

Transaction ID

Responses
200
successful operation
*/*
404
Transaction not found
get
GET /transaction/{transaction_id} HTTP/1.1
Host: rest.metacoin.network:20923
Accept: */*
{
  "address": "text",
  "db_id": "text",
  "db_sn": "text",
  "id": "text",
  "parameters": [
    "text"
  ],
  "timestamp": 1,
  "token": 1,
  "type": "Chaincode Install or Update",
  "validationCode": "text",
  "values": {
    "addinfo": "text",
    "balance": [
      {
        "token": "text",
        "balance": "text",
        "unlockdate": 1
      }
    ],
    "password": "text",
    "pending": [
      {}
    ],
    "regdate": 1
  }
}
  • GETGet last block info
  • GETGet Block info and Transaction ID in block
  • GETGet Transaction info