Sub-Adapters 1
Preview and test each sub adapter.
Evmos (evmos)
Metadata
- ID
- evmos
- name
"Evmos"
- icon
- category
"l1"
- description
"Evmos is a scalable and interoperable Ethereum, built on Proof-of-Stake with fast-finality."
- feeDescription
"The transaction fee is distributed between developers and validators,"
- blockchain
"Evmos"
- source
"EVMOS RPC API"
- adapter
"evmos"
- website
"https://evmos.org/"
- tokenTicker
"EVMOS"
- tokenCoingecko
"evmos"
- protocolLaunch
"2022-04-27"
Queries
Adapter Code
Check the entire code written for the Adapter.
Source code
1export const name = 'EVMOS Fees';
2export const version = '1.1.0';
3export const license = 'MIT';
4
5export function setup(sdk: Context) {
6 async function oneDayTotalFees(date: string): Promise<number> {
7 // see: https://evm.evmos.org/api-docs#stats
8 const totalFees = await sdk.http.get(`https://evm.evmos.org/api?module=stats&action=totalfees&date=${date}`);
9 if (!totalFees.result) {
10 return null;
11 }
12 const evmosPrice = await sdk.coinGecko.getHistoricalPrice('evmos', date);
13 return (Number(totalFees.result) / 1e18) * evmosPrice;
14 }
15
16 sdk.register({
17 id: 'evmos',
18 queries: {
19 oneDayTotalFees,
20 },
21 metadata: {
22 name: 'Evmos',
23 icon: sdk.ipfs.getDataURILoader('QmXhPaHEpLakqEvhY36bzt3ffi9HheF8haPNdbf8RKJbko', 'image/svg+xml'),
24 category: 'l1',
25 description: 'Evmos is a scalable and interoperable Ethereum, built on Proof-of-Stake with fast-finality.',
26 feeDescription: 'The transaction fee is distributed between developers and validators,',
27 blockchain: 'Evmos',
28 source: 'EVMOS RPC API',
29 adapter: 'evmos',
30 website: 'https://evmos.org/',
31 tokenTicker: 'EVMOS',
32 tokenCoingecko: 'evmos',
33 protocolLaunch: '2022-04-27',
34 },
35 })
36}
37
It's something off?
Report it to the discussion board on Discord, we will take care of it.