Add blockHeader instructions and examples.

This commit is contained in:
Miguel Medeiros
2021-07-22 02:18:15 -03:00
parent 47fa100786
commit 4cd7665e8c
3 changed files with 26 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ const init = async () => {
const blockRaw = await blocks.getBlockRaw({ hash });
console.log(blockRaw);
const blockHeader = await blocks.getBlockHeader({ hash });
console.log(blockHeader);
const blockHeight = await blocks.getBlockHeight({ height: 0 });
console.log(blockHeight);