Adapter

Gnosis Chain Fees

Gnosis Chain is an Ethereum sidechain that uses Dai as the base asset.

Sub-Adapters 1

Preview and test each sub adapter.

Gnosis Chain (gnosis-chain)

Metadata

ID
gnosis-chain
name

"Gnosis Chain"

icon
category

"l1"

description

"Gnosis Chain is an Ethereum sidechain that uses Dai as the base asset."

feeDescription

"Transaction fees are paid by users to validators."

blockchain

"Gnosis Chain"

source

"Blockscout"

adapter

"xdai"

website

"https://www.gnosischain.com/"

tokenTicker

"GNO"

tokenCoingecko

"gnosis"

protocolLaunch

"2020-06-03"

Queries

Adapter Code

Check the entire code written for the Adapter.

Source code

Showing TS source.
1export const name = 'Gnosis Chain Fees';
2export const version = '1.0.0';
3export const license = 'MIT';
4
5export function setup(sdk: Context) {
6  async function getxDaiData(date: string): Promise<number> {
7    const json = await sdk.http.get(
8      `https://blockscout.com/xdai/mainnet/api?module=stats&action=totalfees&date=${date}`
9    );
10
11    return json.result && json.result / 1e18;
12  }
13
14  sdk.register({
15    id: 'gnosis-chain',
16    queries: {
17      oneDayTotalFees: getxDaiData,
18    },
19    metadata: {
20      name: 'Gnosis Chain',
21      icon: sdk.ipfs.getDataURILoader('QmPFzLaw3G3SDvsHoebWGn52H1n8dpfEmmvSznkKDkPuC4', 'image/svg+xml'),
22      category: 'l1',
23      description: 'Gnosis Chain is an Ethereum sidechain that uses Dai as the base asset.',
24      feeDescription: 'Transaction fees are paid by users to validators.',
25      blockchain: 'Gnosis Chain',
26      source: 'Blockscout',
27      adapter: 'xdai',
28      website: 'https://www.gnosischain.com/',
29      tokenTicker: 'GNO',
30      tokenCoingecko: 'gnosis',
31      protocolLaunch: '2020-06-03',
32    },
33  })
34}
35

It's something off?

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

Adapter Info

Version

1.0.0

License

MIT

IPFS CID

QmRNzP3YzxGDALrTkjAEGCoDJqskNbn2JvUTTCDwJ4g2pF

CID (source)

QmPKiocT3BfSzWwJ4AEjUMBQU1XHN1cqHCzPACfKNZDcZJ

Collections

Author

0xB922a0a797026D5C45145503E1976989B05Cf307