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:
_10import * as sdk from "@onflow/sdk"_10_10sdk.resolveRefBlockId(opts)
Or import directly the specific function:
_10import { resolveRefBlockId } from "@onflow/sdk"_10_10resolveRefBlockId(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