USDT Transaction History Subscription Template
Use this API to get USDT transaction in real time from Ethereum blockchain.
Streams the latest transfers on Ethereum as they happen, where currency smart contract is 0xdac1…1ec7: transfer amount, sender, receiver, currency name, success, transaction hash and transaction type.
What it returns
- transfer amount
- sender
- receiver
- currency name
- success
- transaction hash
- transaction type
Filters
- currency smart contract is 0xdac1…1ec7
The subscription
# query returns latest transactions for erc20 token
# $token is erc 20 contract address
subscription ($token: String!) {
EVM(network: eth) {
Transfers(
where: {Transfer: {Currency: {SmartContract: {is: $token}}}}
orderBy: {descending: Block_Time}
limitBy: {by: Block_Time, count: 10}
) {
Transfer {
Amount
Sender
Receiver
Currency {
Name
}
}
TransactionStatus {
Success
}
Transaction {
Hash
Type
}
}
}
}
Variables
{
"token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}
Similar queries
- Subscription on the mempool · Ethereum · Transfers
- Subscribe to Latest WETH token transfers · Ethereum · Transfers
- pepe-whale-transfer-stream · Ethereum · Transfers
- Transfers Greater than $10k on Ethereum · Ethereum · Transfers
- Usdc Transactions · Ethereum · Transfers