How to use the @liquality/ethereum-utils.normalizeTransactionObject function in @liquality/ethereum-utils

To help you get started, we’ve selected a few @liquality/ethereum-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liquality / chainabstractionlayer / packages / ethereum-rpc-provider / lib / EthereumRpcProvider.js View on Github external
async getTransactionByHash (txHash) {
    txHash = ensure0x(txHash)

    const currentBlock = await this.getBlockHeight()
    const tx = await this.jsonrpc('eth_getTransactionByHash', txHash)

    return normalizeTransactionObject(tx, currentBlock)
  }
github liquality / chainabstractionlayer / packages / ethereum-rpc-provider / lib / EthereumRpcProvider.js View on Github external
      block.transactions = block.transactions.map(tx => normalizeTransactionObject(tx, currentHeight))
    }

@liquality/ethereum-utils

[![Build Status](https://travis-ci.com/liquality/chainabstractionlayer.svg?branch=master)](https://travis-ci.com/liquality/chainabstractionlayer) [![Coverage Status](https://coveralls.io/repos/github/liquality/chainabstractionlayer/badge.svg?branch=master

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Similar packages