FRUITS API Document
  • FRUITS API Document
  • Java sample code
  • PHP sample code
  • Creating Unsigned Transactions
  • Create Transaction Request
  • Create Transaction Response
  • SERVER INFORMATION
    • Get Blockchain Status
    • Get My Info
    • Get State
    • Get Time
  • ACCOUNT
    • Get Account
    • Get Account Blocks
    • Get Balance
    • Send FRTS
    • Send FRTS Multi
    • Set Account Info
  • TRANSACTION
    • Broadcast Transaction
    • Calculate Full Hash
    • Get Transaction
  • BLOCK
    • Get Block
    • Get Block Id
    • Get Blocks
  • Process flowchart
    • FRTS, token send/receive flow
    • FRUITS Wallet connect flow
  • Create & Active Account
    • Coding Guidelines in Java
    • Coding Guidelines in JS
  • FRUITS Node API For Single NFT
    • Create NFT Smart Contract
    • Mint NFT
    • Transfer NFT
    • Place a sell order
    • Cancel a sell order
    • Buy NFT
    • Get NFT By URI
    • Get List of NFTs by Account
    • Get List of NFTs for sale
    • Get List of NFTs By Smart Contract
  • FRUITS Node API For multiple NFT
    • Create NFT Smart Contract
    • Mint NFT
    • Transfer NFT
    • Place a sell order
    • Cancel a sell order
    • Buy NFT
    • Get Multiple Token By Account
    • Get Multiple Token By Contract
    • Get Multiple Token By Owners
    • Get Multiple Token By Uri
Powered by GitBook
On this page
  1. BLOCK

Get Block

Get a block object given a block ID or block height.

Request: requestType is getBlock block is the block ID (optional) height is the block height (optional if block provided) timestamp is the timestamp (in seconds since the genesis block) of the block (optional if height provided) includeTransactions is true to include transaction details (optional)

Note: block overrides height which overrides timestamp.

Response:

(S) previousBlockHash is the 32-byte hash of the previous block (N) payloadLength is the length (in bytes) of all transactions included in the block (S) totalAmountNQT is the total amount (in NQT) of the transactions in the block (S) generationSignature is the 32-byte generation signature of the generating account (S) generator is the the generating account number (S) generatorPublicKey is the 32-byte public key of the generating account (S) baseTarget is the base target for the next block generation (S) payloadHash is the 32-byte hash of the payload (all transactions) (S) generatorRS is the Reed-Solomon address of the generating account (S) blocReward is the total block reward (S) nextBlock is the next block ID (N) requestProcessingTime is the API request processing time (in millisec) (S) scoopNum is the scoop number (N) numberOfTransactions is the number of transactions in the block (S) blockSignature is the 64-byte block signature (A) transactions is the array of transaction IDs or transaction objects (if includeTransactions provided, refer to Get Transaction for details) (N) nonces is the actual nonce number (S) version is the block version (S) totalFeeNQT is the total fee (in NQT) of the transactions in the block (S) previousBlock is the previous block ID (S) block is the block ID (N) height is the zero-based block height (N) timestamp is the timestamp (in seconds since the genesis block) of the block

PreviousGet TransactionNextGet Block Id

Last updated 3 years ago