Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for the nativize function.

Hierarchy

  • NativizeOptions

Index

Properties

format?: "ethers"

The format for the nativized result. Currently the only supported format is "ethers", which nativizes things in a way compatible with how Ethers decodes values. This format is quite limited, but more may be added in the future. There is also the separate function unsafeNativize, although that is, as noted, unsafe.

numberFormatter?: NumberFormatter

This is a function that is used to describe how to format integer values. It should take as input the number as a BigInt. By default, it's the identity function (i.e., it formats the numbers as BigInts), but by setting it you could instead format numbers as a BN, BigNumber, string, etc.

Generated using TypeDoc