Binance DEX address monthly transfers
by bitquery
HTML
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/bitquery/[email protected]/dist/assets/css/widgets.css">
<script src="https://cdn.jsdelivr.net/gh/bitquery/[email protected]/dist/widgets.js"></script>
<h1>
Transfers monthly
</h1>
<div id="transfers_timegraph"></div>
<p>All transfers by address bnb1qu59r9degdxqtzvhsqupcrnnwtr6qdv3n3usgg in Binance DEX blockchain
</p>
JavaScript
widgets.init('https://graphql.bitquery.io', 'apikey', {locale: 'en', theme: 'light'});
var query = new widgets.query(`
query($currency: String!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime){
binance {
transfers(from: $from, till: $till,
transferType: [BLOCK_REWARD,BURN,CLAIM_HTL,DEPOSIT_HTL,HTL_TRANSFER,ISSUE,MINT,TRADE_BUY,TRADE_SELL,TRANSFER]){
sum_in: amount(calculate: sum,
currency: {symbol: $currency},
receiver: {address: $address}
)
sum_out: amount(calculate: sum,
currency: {symbol: $currency},
sender: {address: $address}
)
count_in: count( uniq: transfers,
receiver: {address: $address}
)
count_out: count( uniq: transfers,
sender: {address: $address}
)
date{
month: date(format: "%Y-%m")
}
}
}
}
`);
var wdts = new widgets.transfers_by_time('#transfers_timegraph', query, 'binance.transfers');
query.request({"limit": 10, "offset": 0, "currency": "BNB", "address": "bnb1qu59r9degdxqtzvhsqupcrnnwtr6qdv3n3usgg", "from": null, "till": null});