Skip to content

Instantly share code, notes, and snippets.

@scriptzteam
Forked from iboss-ptk/whale.js
Created October 14, 2021 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptzteam/f89b9f8440869c4c6da34a04cdbb08bf to your computer and use it in GitHub Desktop.
Save scriptzteam/f89b9f8440869c4c6da34a04cdbb08bf to your computer and use it in GitHub Desktop.
const axios = require('axios')
const toStringParams = o =>
Object
.keys(o)
.map(k => `${k}=${o[k]}`)
.join('&')
const whaleTxns = async (from) => await axios
.get(`https://api.clankapp.com/v2/explorer/tx?${toStringParams({
s_date: 'desc',
size: 10000,
'>_amount_usd': 10000000,
t_symbol: 'btc',
t_to_owner: 'binance',
t_transaction_type: 'transfer',
api_key: 'YOUR_API_KEY'
})}`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment