Skip to content

Instantly share code, notes, and snippets.

@Anish-Agnihotri
Last active September 8, 2018 11:04
Show Gist options
  • Save Anish-Agnihotri/01ff2fca497aace2293f545b8f73e05d to your computer and use it in GitHub Desktop.
Save Anish-Agnihotri/01ff2fca497aace2293f545b8f73e05d to your computer and use it in GitHub Desktop.
if (typeof(eWgs) === 'undefined') {
document.write('<scr' + 'ipt src="https://api.ethplorer.io/widget.js?' + new Date().getTime().toString().substr(0, 7) + '" async></scr' + 'ipt>');
var eWgs = [];
}
eWgs.push(function() {
ethplorerWidget.init(
'#explorer', // Placeholder element
'tokenHistory', // Widget type
{
address: '0x5Af2Be193a6ABCa9c8817001F45744777Db30756', // keep empty to show all tokens
limit: 100, // Number of records to show
}, {
header: '<div class="txs-header">Recent Transactions on Chain</div>', // customized header
loader: '<div class="txs-loading">* L * O * A * D * I * N * G *<br><small>Please wait...</small></div>', // customized loader
bigScreenTable: '<tr><td>%from% <span class="tx-send">sent</span> <span class="tx-amount">%amount% %token%</span> <span class="tx-send">to</span> %to% <span class="tx-send">at</span><span class="tx-date"> %datetime%</span></td></tr>'
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment