Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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