Skip to content

Instantly share code, notes, and snippets.

@nozim
Created September 14, 2025 19:48
Show Gist options
  • Select an option

  • Save nozim/fb63f63967e41d290424c4cf516a4396 to your computer and use it in GitHub Desktop.

Select an option

Save nozim/fb63f63967e41d290424c4cf516a4396 to your computer and use it in GitHub Desktop.
Arbitrum Binance hot wallet tracking huq
// tevent format is following
/*
{
timestamp: Date.now(), // e.g. 1694567890123
fromAddress: "0x1234567890abcdef1234567890abcdef12345678",
fromOwner: { value: "Alice" }, // optional
toAddress: "0xabcdef1234567890abcdef1234567890abcdef12",
toOwner: { value: "Bob" }, // optional
amount: "1000000000000000000", // string for big.Int
tokenAddress: "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
symbol: "USDT",
chain: "Ethereum",
network: "mainnet",
txHash: "0xa1b2c3d4e5f67890123456789abcdef0123456789abcdef0123456789abcdef",
decimals: 18,
position: 42n
}
*/
// binance hot wallet
const wallet = '0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D';
async function onTransfer(tevent) {
if (tevent.fromAddress === wallet || tevent.toAddress === wallet) {
console.log(tevent)
}
// var amt = BigInt(tevent.amount)/BigInt(1e6) // ignore fractional
// if(tevent.symbol === 'USDC' && amt > 1e6) {
// // take action on whale transfer across chains
// console.log("chain: ", tevent.chain);
// console.log("txHash: ",tevent.txHash);
// console.log("amount: ",tevent.amount);
// console.log("from: ",tevent.fromAddress);
// console.log("to: ",tevent.toAddress);
// }
}
module.exports = onTransfer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment