withPrefix
Adds 0x to address if not already present
Import
You can import the entire package and access the function:
_10import * as fcl from "@onflow/fcl-core"_10_10fcl.withPrefix(address)
Or import directly the specific function:
_10import { withPrefix } from "@onflow/fcl-core"_10_10withPrefix(address)
Parameters
address
- Type:
null
- Description: - Flow address
Returns
null
Flow address with 0x prefix