Get block information from blockchain.
sdk.transaction.getBlock(opts)
opts.block (string)(required) - block number.
opts.block
opts.protocol (string)(required) - blockchain protocol.
opts.protocol
const tx = await sdk.transaction.getBlock({ block: '111111', protocol: 'STELLAR' }) // Raw block information returned from the Blockchain
Last updated 2 years ago