# Get transaction method, input and value?

**URL:** <https://community.bitquery.io/t/get-transaction-method-input-and-value/466>\
**Category:** GraphQL API\
**Tags:** open\
**Created:** [September 6, 2021, 7:33pm UTC](https://community.bitquery.io/t/get-transaction-method-input-and-value/466 "2021-09-06T19:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vayas](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@Vayas](https://community.bitquery.io/u/Vayas)\
**Post date:** [September 6, 2021, 7:33pm UTC](https://community.bitquery.io/t/get-transaction-method-input-and-value/466/1 "2021-09-06T19:33:00Z")

</div>

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](https://bscscan.com/token/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3) 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](https://bscscan.com/tx/0xc9d04d57aac1670710d304165dbaee764e4ebda9154960755a1cff0e205ae4cf) for example?

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [September 7, 2021, 10:30am UTC](https://community.bitquery.io/t/get-transaction-method-input-and-value/466/2 "2021-09-07T10:30:59Z")

</div>

> [@Vayas](#):
>
> the “Value” field

You can get the “ **value** ” using this GraphQL query

```auto
{
  ethereum(network: bsc){
    transactions(
      txHash: {is: "0xc9d04d57aac1670710d304165dbaee764e4ebda9154960755a1cff0e205ae4cf"}
    ){
      amount
      amountInUSD: amount(in: USD)
    }
  }
}

```

> [@Vayas](#):
>
> And how could I get the transaction “input | Tokens Transferred:”

You can get the **Tokens Transferred** data using the GraphQL query below

```auto
{
  ethereum(network: bsc) {
    transfers(
      txHash: {is: "0xc9d04d57aac1670710d304165dbaee764e4ebda9154960755a1cff0e205ae4cf"}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      amount
      currency {
        symbol
        address
      }
    }
  }
}

```

> [@Vayas](#):
>
> I’m looking for the “burn” transaction

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.

```auto
{
  ethereum(network: bsc) {
    smartContractEvents(smartContractAddress: {is: "0x1b96b92314c44b159149f7e0303511fb2fc4774f"}, smartContractEvent: {is: "Burn"}, options: {limit: 10}) {
      arguments {
        value
        argument
      }
    }
  }
}

```

> [@Vayas](#):
>
> “create Liquidity” transaction for newly created tokens.

Are you looking for newly created pool tokens?

---

<div class="post-metadata">

**Author:** ![Vayas](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@Vayas](https://community.bitquery.io/u/Vayas)\
**Post date:** [September 11, 2021, 8:42pm UTC](https://community.bitquery.io/t/get-transaction-method-input-and-value/466/3 "2021-09-11T20:42:11Z")

</div>

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](https://bscscan.com/tx/0xada338ac0bd458a0c94702c010bacba56735b493301ff3a3dc6802f3e05952d2) for example.

Can I filter that by a “smartContractEvent” like “CreateLP” or similar?

Thanks!
