Skip to main content

withPrefix

Adds 0x to address if not already present

Import

You can import the entire package and access the function:


_10
import * as fcl from "@onflow/fcl"
_10
_10
fcl.withPrefix(address)

Or import directly the specific function:


_10
import { withPrefix } from "@onflow/fcl"
_10
_10
withPrefix(address)

Parameters

address

  • Type: null
  • Description: - Flow address

Returns

null

Flow address with 0x prefix


Rate this page