For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get block information

Get block information from blockchain.

sdk.transaction.getBlock(opts)

  • opts.block (string)(required) - block number.

  • opts.protocol (string)(required) - blockchain protocol.

const tx = await sdk.transaction.getBlock({ block: '111111', protocol: 'STELLAR' })
// Raw block information returned from the Blockchain

Last updated