Vayas
September 6, 2021, 7:33pm
1
Hello.
I’m working on some analysis for BEP-20 tokens and need to find specific transactions from tokens, in my case I’m looking for the “burn” transaction and the “create Liquidity” transaction for newly created tokens.
Is it possible to get the transaction “Method” like BSCscan here: SafeMoon (SAFEMOON) Token Tracker | BscScan or is that a custom made solution?
And how could I get the transaction “input | Tokens Transferred:” field and the “Value” field like here: Binance Transaction Hash (Txhash) Details | BscScan for example?
sayon
September 7, 2021, 10:30am
2
Vayas:
the “Value” field
You can get the “value ” using this GraphQL query
{
ethereum(network: bsc){
transactions(
txHash: {is: "0xc9d04d57aac1670710d304165dbaee764e4ebda9154960755a1cff0e205ae4cf"}
){
amount
amountInUSD: amount(in: USD)
}
}
}
You can get the Tokens Transferred data using the GraphQL query below
{
ethereum(network: bsc) {
transfers(
txHash: {is: "0xc9d04d57aac1670710d304165dbaee764e4ebda9154960755a1cff0e205ae4cf"}
) {
sender {
address
}
receiver {
address
}
amount
currency {
symbol
address
}
}
}
}
You can use our SmartContractEvent API to get data for any smart contract’s event. you can use Burn events to get data whenever liquidity is removed from the pool. Here, is the corresponding GraphQL query which demonstrates the same.
{
ethereum(network: bsc) {
smartContractEvents(smartContractAddress: {is: "0x1b96b92314c44b159149f7e0303511fb2fc4774f"}, smartContractEvent: {is: "Burn"}, options: {limit: 10}) {
arguments {
value
argument
}
}
}
}
Are you looking for newly created pool tokens?
Vayas
September 11, 2021, 8:42pm
3
Thanks for your response, it was really helpful.
Yes, I’m specially looking for newly created tokens and the creation LP transaction on Pancakeswap. Something like: https://bscscan.com/tx/0xada338ac0bd458a0c94702c010bacba56735b493301ff3a3dc6802f3e05952d2 for example.
Can I filter that by a “smartContractEvent” like “CreateLP” or similar?
Thanks!