0.0.9 • Published 3 years ago

@onflow/sdk-latest-block v0.0.9

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
3 years ago

sdk-latest-block

Fetch the Latest Block from the configured Access Node

import {config} from "@onflow/config"
import {latestBlock} from "@onflow/sdk-latest-block"

config()
  .put("accessNode.api", "https://access-testnet.onflow.org") // point the sdk to the desired access node

var block = await latestBlock()

console.log("id", block.id)              // The blocks ID
console.log("height", block.height)      // The blocks Height
console.log("parent id", block.parentId) // ID of the blocks parent
0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

4 years ago

0.0.1

4 years ago

0.0.2

4 years ago

0.0.0

4 years ago