Created
April 9, 2021 02:48
-
-
Save iboss-ptk/4a6cc4f2b817b98886361402035a5f84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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