Skip to main content

Get Coin Metadata by Coin Type Hashes

GEThttps://mainnet-aptos-api.moralis.io/coins
QUERY PARAMS
coin_type_hashesarrayrequired
The coin type hashes to fetch info about
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'Bearer': 'YOUR_API_KEY'
},
};

fetch('https://mainnet-aptos-api.moralis.io/coins', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
Empty