Adapter

Hermez transaction fees

Polygon Hermez is an open-source ZK-Rollup that aims to be optimized for secure, low-cost and usable token transfers on the wings of Ethereum.

Sub-Adapters 1

Preview and test each sub adapter.

Polygon Hermez (hermez)

Metadata

ID
hermez
icon
category

"l2"

name

"Polygon Hermez"

description

"Polygon Hermez is an open-source ZK-Rollup that aims to be optimized for secure, low-cost and usable token transfers on the wings of Ethereum."

l2BeatSlug

"hermez"

website

"https://hermez.io"

Queries

Adapter Code

Check the entire code written for the Adapter.

Source code

Showing TS source.
1export const name = 'Hermez transaction fees';
2export const version = '0.1.1';
3export const license = 'MIT';
4
5export function setup(sdk: Context) {
6  const getFeeForTransfer = async () => {
7    const url = 'https://api.hermez.io/v1/state';
8    const feeData = await sdk.http.get(url);
9
10    return feeData.recommendedFee.existingAccount;
11  };
12
13  sdk.register({
14    id: 'hermez',
15    queries: {
16      feeTransferEth: getFeeForTransfer,
17      feeTransferERC20: getFeeForTransfer,
18    },
19    metadata: {
20      icon: sdk.ipfs.getDataURILoader('QmRcHtv6ZaHRCE8KkVwdXazbKTiUqdkL4FFBT1Bt42q1w2', 'image/svg+xml'),
21      category: 'l2',
22      name: 'Polygon Hermez',
23      description: 'Polygon Hermez is an open-source ZK-Rollup that aims to be optimized for secure, low-cost and usable token transfers on the wings of Ethereum.',
24      l2BeatSlug: 'hermez',
25      website: 'https://hermez.io',
26    },
27  });
28}
29

It's something off?

Report it to the discussion board on Discord, we will take care of it.

Adapter Info

Version

0.1.1

License

MIT

IPFS CID

QmUUhP4rMZM2sHfbeFcbnQSQnkCaUshZzFZpCKKfwWAD1N

CID (source)

Qmbv5NAUdhXsAHaCCAuuEaByT5Hh4PpTKxuXevce2paT3z

Collections

l2-fees

Author

mihal.eth