@zapjs/utils

Zap Utils

Usage no npm install needed!

<script type="module">
  import zapjsUtils from 'https://cdn.skypack.dev/@zapjs/utils';
</script>

README

@zapjs/utils

This repository provides utilities used in other @zapjs packages. This includes various pure functions that are used by other Ethereum-interfacing packages.

Prerequisites

- Node 12.20 <=14.15
- Typescript

Usage

npm install `@zapjs/utils`

Methods available

import {Utils} from '@zapjs/utils';
Utils.getHexBuffer(string)
Utils.getHexString(string)
Utils.toZapBase(num)
Utils.fromzapBase(num)
Utils.normalizeProvider(ZapProvider)

See more Usages of each packages :