Get block information
Get block information from blockchain.
sdk.transaction.getBlock(opts)
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