Skip to main content

resolveRefBlockId

Resolves the reference block ID for a transaction by querying the latest block from the network.

Import

You can import the entire package and access the function:


_10
import * as sdk from "@onflow/sdk"
_10
_10
sdk.resolveRefBlockId(opts)

Or import directly the specific function:


_10
import { resolveRefBlockId } from "@onflow/sdk"
_10
_10
resolveRefBlockId(opts)

Parameters

opts (optional)

  • Type:

_10
{ [key: string]: any; }

  • Description: Optional configuration parameters

Returns


_10
(ix: any) => Promise<Interaction>

A function that resolves the reference block ID for an interaction


Rate this page