Skip to main content

formatters

Index

Functions

inputAddressFormatter

  • inputAddressFormatter(address: string): string
  • @deprecated

    Use format function from web3-utils package instead


    Parameters

    • address: string

    Returns string

inputBlockNumberFormatter

  • inputBlockNumberFormatter(blockNumber: undefined | Numbers): undefined | string
  • @deprecated

    Use format function from web3-utils package instead Returns the given block number as hex string or the predefined block number 'latest', 'pending', 'earliest', 'genesis'


    Parameters

    Returns undefined | string

inputCallFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the input of a transaction and converts all values to HEX


    Parameters

    Returns Mutable<TransactionOutput>

inputDefaultBlockNumberFormatter

  • inputDefaultBlockNumberFormatter(blockNumber: undefined | Numbers, defaultBlock: Numbers): undefined | string
  • @deprecated

    Use format function from web3-utils package instead Returns the given block number as hex string or does return the defaultBlock property of the current module


    Parameters

    Returns undefined | string

inputLogFormatter

  • @deprecated

    Use format function from web3-utils package instead


    Parameters

    Returns Filter

inputPostFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the input of a whisper post and converts all values to HEX


    Parameters

    Returns PostInput

inputSignFormatter

  • inputSignFormatter(data: string): string
  • @deprecated

    Use format function from web3-utils package instead Hex encodes the data passed to eth_sign and personal_sign


    Parameters

    • data: string

    Returns string

inputStorageKeysFormatter

  • inputStorageKeysFormatter(keys: string[]): string[]
  • @deprecated

    Use format function from web3-utils package instead Will format the given storage key array values to hex strings.


    Parameters

    • keys: string[]

    Returns string[]

inputTopicFormatter

  • inputTopicFormatter(topic: string): null | string
  • @deprecated

    Use format function from web3-utils package instead


    Parameters

    • topic: string

    Returns null | string

inputTransactionFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the input of a transaction and converts all values to HEX


    Parameters

    Returns Mutable<TransactionOutput>

outputBigIntegerFormatter

  • outputBigIntegerFormatter(number: Numbers): number | bigint
  • @deprecated

    Use format function from web3-utils package instead Should the format output to a big number


    Parameters

    Returns number | bigint

outputBlockFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the output of a block to its proper values

    @function

    outputBlockFormatter


    Parameters

    Returns BlockOutput

outputLogFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the output of a log

    @function

    outputLogFormatter


    Parameters

    Returns LogsOutput

outputPostFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the output of a received post message

    @function

    outputPostFormatter


    Parameters

    Returns PostOutput

outputProofFormatter

  • @deprecated

    Use format function from web3-utils package instead Will format the given proof response from the node.


    Parameters

    Returns Proof

outputSyncingFormatter

  • @deprecated

    Use format function from web3-utils package instead


    Parameters

    Returns SyncOutput

outputTransactionFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the output of a transaction to its proper values

    @function

    outputTransactionFormatter


    Parameters

    Returns TransactionOutput

outputTransactionReceiptFormatter

  • @deprecated

    Use format function from web3-utils package instead Formats the output of a transaction receipt to its proper values


    Parameters

    Returns ReceiptOutput

txInputOptionsFormatter