Full Service API
  • Welcome!
  • Overview
  • API Endpoints
    • v2
      • Account
        • Account
          • Create Account
          • Import Account
          • Import Account Legacy
          • Get Accounts
          • Get Account Status
          • Get Balance
          • Update Account Name
          • Set Require Spend Subaddress
          • Remove Account
        • Account Secrets
          • Export Account Secrets
        • Address
          • Assign Address For Account
          • Get Address For Account
          • Get Addresses
          • Get Address Status
          • Verify Address
        • View Only Account
          • Import View Only Account
          • Create View Only Account Import Request
          • Create View Only Account Sync Request
          • Sync View Only Account
      • Transaction
        • Transaction
          • Build Transaction
          • Submit Transaction
          • Build And Submit Transaction
          • Build Burn Transaction
          • Build Unsigned Transaction
          • Build Unsigned Burn Transaction
        • Transaction Output TXO
          • Memo
            • Validate Sender Memo
          • Get TXO
          • Get TXOs
          • Get MobileCoin Protocol TXO
          • Get TXO Membership Proofs
          • Sample Mixins
          • Get TXO Block Index
        • Confirmation
          • Get Confirmations
          • Validate Confirmations
        • Receiver Receipt
          • Check Receiver Receipt Status
          • Create Receiver Receipts
        • Transaction Log
          • Get Transaction Log
          • Get Transaction Logs
          • Get MobileCoin Protocol Transaction
        • Payment Request
          • Create Payment Request
          • Check B58 Type
      • Block
        • Get Block
        • Get Blocks
        • Get Recent Blocks
        • Search Ledger
      • Network Status
        • Get Network Status
      • Wallet Status
        • Get Wallet Status
      • Version
        • Get Version
    • v1 (deprecated)
      • Account
        • Account
          • Create Account
          • Import Account
          • Import Account Legacy
          • Get Account
          • Get All Accounts
          • Get Account Status
          • Update Account Name
          • Remove Account
        • Account Secrets
          • Export Account Secrets
        • Address
          • Assign Address For Account
          • Get Addresses For Account
          • Verify Address
        • Balance
          • Get Balance For Account
          • Get Balance For Address
      • Transaction
        • Transaction
          • Build Transaction
          • Submit Transaction
          • Build And Submit Transaction
          • Build Split Txo Transaction
        • Transaction Output TXO
          • Get TXO
          • Get MobileCoin Protocol TXO
          • Get TXOs For Account
          • Get TXOs For View Only Account
          • Get All TXOs For Address
        • Confirmation
          • Get Confirmations
          • Validate Confirmations
        • Receiver Receipt
          • Check Receiver Receipt Status
          • Create Receiver Receipts
        • Transaction Log
          • Get Transaction Object
          • Get Transaction Log
          • Get Transaction Logs For Account
          • Get All Transaction Logs For Block
          • Get All Transaction Logs Ordered By Block
          • Get MobileCoin Protocol Transaction
        • Payment Request
          • Create Payment Request
          • Check B58 Type
      • Gift Code
        • Build Gift Code
        • Submit Gift Code
        • Get Gift Code
        • Get All Gift Codes
        • Check Gift Code Status
        • Claim Gift Code
        • Remove Gift Code
      • Block
        • Get Block
      • Network Status
        • Get Network Status
      • Wallet Status
        • Get Wallet Status
      • Version
        • Get Version
    • Signer Service
      • Create Account
      • Get Account
      • Sign Transaction
      • Sync Txos
  • Usage
    • Getting Started
      • Running Full Service
      • Create an Account
      • Receiving MobileCoin
      • Sending MobileCoin
      • Next Steps
    • Full Service Network Diagram
    • Supported Token Metadata
    • Database Usage
    • API Key
    • View Only Account
      • Signer
      • Signer Service
    • No Wallet Mode
    • Validator Service
      • Running
      • Running With TLS
    • Mirror Service
      • Running
      • Running With TLS
      • Running With Encryption
    • Logging
      • Text Logs (syslog style)
      • Crash Reports
    • T3
    • Sender Memos
  • FAQ
    • Resolving Disputes
    • How do I check if Full-Service is operational?
    • Where are logs stored?
    • How do I speed up account import?
    • What is the precision of MOB?
  • Glossary
    • Account
    • Block
    • Blockchain
    • Consensus Protocol
    • Fog
    • Full Service
    • Key Image
    • Ledger
    • MOB
    • Public Address
    • Secure Enclave
    • Subaddress
    • Transaction
    • Transaction Proposal
    • Validator Node
    • Validator Service
Powered by GitBook
On this page
  • Request
  • Response
  • Example

Was this helpful?

  1. API Endpoints
  2. v2
  3. Block

Get Block

Get the JSON representation of the "Block" object in the ledger.

PreviousBlockNextGet Blocks

Last updated 1 year ago

Was this helpful?

Optional Param
Purpose
Requirements

block_index

The block on which to perform this action.

Block must exist in the ledger.

txo_public_key

The public key on which to perform this action, as hex encoded bytes

Public key must exist in the ledger.

Example

{
  "method": "get_block",
  "params": {
    "block_index": "3204",
  },
  "jsonrpc": "2.0",
  "id": 1
}
{
  "method": "get_block",
  "result": {
    "block": {
      "id": "f9e61c4c62d2b7f4741ae219c88e88a6446549b3ec6d223665dd5290b6e4f41e",
      "version": "0",
      "parent_id": "bf971608329e17c2fb1a08995580459fc158df9d628f05a32c951b83b4656307",
      "index": "3204",
      "cumulative_txo_count": "9638",
      "root_element": {
        "range": {
          "from": "0",
          "to": "16383"
        },
        "hash": "cc6e295d51947fad0c114325924d87ce247b96e541ca877642a1012ed697ec32"
      },
      "contents_hash": "c7933db034fe4916a2aff689e5396ca95dee080255071073f6aa574d11433b4c"
    },
    "block_contents": {
      "key_images": [
        "0a209a458509e1b4d2bdc9f508efdd763d0b2f93e6208167d66b409e5340ed966b0f"
      ],
      "outputs": [
        {
          "masked_amount": {
            "commitment": "702425de53fb2beaa3a9f6ae55d448fb76e3731706321bec2e2b14f971a61d53",
            "masked_value": "1805309211121738718",
            "masked_token_id": "",
            "version": null
          },
          "target_key": "e082729801cc958f0fcda3b2041408015ac07ca041552e4f6c56a4286f659f2f",
          "public_key": "ea0d6a2f47cc54dcd47aa52a58fe392b11607c43467a6f45d49dd0fc551ec520",
          "e_fog_hint": "cbc9d140db329ab0f533c5878b0dc47f42cec840c78614688df1860a3c7c840070503e4661164324929ae4777bbc821b80cc8fdb0ee0b222a750b8ed2a226fc25b1795d20b031ffe2d2f225d9f0074cb38d10100",
          "e_memo": ""
        },
        {
          "masked_amount": {
            "commitment": "f6207c1952489634384434c230bac7eb72427d15742e2b43ce40fa9be21f6044",
            "masked_value": "778515034541258781",
            "masked_token_id": "",
            "version": null
          },
          "target_key": "94f722c735c5d2ada2561717d7ce83a1ebf161d66d5ab0e13c8a189048629241",
          "public_key": "eaaf989840dba9de8f825f7d11c01523ad46f7f581bafc5f9d2a37d35b4b9e2f",
          "e_fog_hint": "7d806ff43d1b4ead24e63263932ef820e7ca5bc72c3b6a01eee42c5e814769eac6b78c72f7fe9cbe4b65dd0f3b70a63b1dcb5f3223430eb5890e388dfa6c8acf7c73f8eeeb3def9a6dd5b4b4a7d3150f8c1e0100",
          "e_memo": ""
        },
        {
          "masked_amount": {
            "commitment": "d09561d73bff74599c989400ee219875f06690a258f76bbafa1caf7d0e0cea0c",
            "masked_value": "3925568865368868231",
            "masked_token_id": "",
            "version": null
          },
          "target_key": "9eb851a8ef81670b5d290039c979a16b675b465590178efcc19fdfdc2566547e",
          "public_key": "faee99e718fc35a43dfcd640f43abd20f0960f5bf7c5c4a72dd10c2868d52949",
          "e_fog_hint": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
          "e_memo": ""
        }
      ]
    },
    "watcher_info": null
  },
  "jsonrpc": "2.0",
  "id": 1
}
Request
Response