API ReferenceCoin APIGet Coin TransfersGet Coin transfers by coin typeVersion: 2.0Get Coin transfers by coin typeMainnetTestnetGEThttps://mainnet-aptos-api.moralis.io/coins/transfers/:coin_typeGet Coin transfers by a specific coin type e.g. 0x1::aptos_coin::AptosCoinPATH PARAMScoin_typestringrequiredThe coin type to fetch info aboutQUERY PARAMSlimitnumberrequiredThe number of results to returnoffsetnumberThe number of results to skipcursorstringThe cursor to use for getting the next pagefrom_datestringThe date from which to fetch coin transfersto_datestringThe date to which to fetch coin transfersResponses200 object400 objectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.AptosApi.coins.getCoinTransfersByCoinType({ "limit": 5, "coinType": "0x1::aptos_coin::AptosCoin" }); console.log(response);} catch (e) { console.error(e);}from moralis import aptos_apiapi_key = "YOUR_API_KEY"params = { "limit": 5, "coin_type": "0x1::aptos_coin::AptosCoin"}result = aptos_api.coins.get_coin_transfers_by_coin_type( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://mainnet-aptos-api.moralis.io/coins/transfers/0x1%3A%3Aaptos_coin%3A%3AAptosCoin?limit=5' \ --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/transfers/0x1%3A%3Aaptos_coin%3A%3AAptosCoin?limit=5" 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/transfers/0x1%3A%3Aaptos_coin%3A%3AAptosCoin?limit=5', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 400 { "cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjoiMHhkODUwOTQyZWY4ODExZjJhODY2NjkyYTYyMzAxMWJkZTUyYTQ2MmMxIiwiY2hhaW4iOiJldGgiLCJkaXNhYmxlVG90YWwiOiJ0cnVlIiwiYXBpS2V5SWQiOjM2NTg5LCJsaW1pdCI6MTAwLCJ0b3BpYzMiOiI9Om51bGwiLCJ0b19ibG9jayI6IjE0NjgxNTM3IiwicGFnZSI6MSwidG90YWwiOjAsIm9mZnNldCI6MSwidWMiOnRydWUsImlhdCI6MTY3MTk3ODQwNH0.XM9IN3wRJgWzSvQCy-K4Asgs_j8p9xTM1pY7UnHEhs4", "hasNextPage": true, "result": { "activity_type": "0x1::coin::WithdrawEvent", "amount": "324933484", "block_height": "49661526", "coin_type": "T0xa911c7236486be921f6cc9227b09afe4a4ad14d291ba1bb8a9b7c4d628759de::gegg::GEGG", "entry_function_id_str": "0x563e8382514ccdcc0c0a83469c9262d22d0b052316c1bd67286ba42bb11d0815::AtodexSwapPoolV1::swap_exact_coi", "event_account_address": "0x9125e4054d884fdc7296b66e12c0d63a7baa0d88c77e8e784987c0a967c670ac", "event_creation_number": "9", "event_sequence_number": "59", "is_gas_fee": "", "is_transaction_success": true, "owner_address": "0x9125e4054d884fdc7296b66e12c0d63a7baa0d88c77e8e784987c0a967c670ac", "transaction_timestamp": "2022-09-17T22:03:32.000000Z", "transaction_version": "210373856" }}