API ReferenceCoin APIGet CoinsGet Coins by coin type hashVersion: 2.2Get Coins by coin type hashMainnetTestnetGEThttps://mainnet-aptos-api.moralis.io/coinsGet one or many Coins by coin type hash.QUERY PARAMScoin_type_hashesarrayrequiredThe coin type hashes to fetch info aboutNo items in the arrayAdd ItemResponses200 object400 objectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.AptosApi.coins.getCoinInfoByCoinTypeHashes({ "network": "mainnet" }); console.log(response);} catch (e) { console.error(e);}from moralis import aptos_apiapi_key = "YOUR_API_KEY"params = { "network": "mainnet"}result = aptos_api.coins.get_coin_info_by_coin_type_hashes( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://mainnet-aptos-api.moralis.io/coins' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://mainnet-aptos-api.moralis.io/coins" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://mainnet-aptos-api.moralis.io/coins', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 400 { "coin_type": "T0xa911c7236486be921f6cc9227b09afe4a4ad14d291ba1bb8a9b7c4d628759de::gegg::GEGG", "coin_type_hash": "6993fb8b5688d392a2d94127b9926519d6327e69f2bcf3dc0c5df2c060aec97d", "creator_address": "0x9125e4054d884fdc7296b66e12c0d63a7baa0d88c77e8e784987c0a967c670ac", "decimals": 8, "name": "GEGG Coin", "supply_aggregator_table_handle": "0x3::token::TokenStore", "supply_aggregator_table_key": "0x3::token::TokenStore", "symbol": "GEGG", "transaction_created_timestamp": "2022-09-17T22:03:32.000000Z", "transaction_version_created": "210373856"}