Latest Loans for a specific lender

Using the same technique of filtering arguments in the following API, we are getting the latest loans for specific lender addresses.

By gaurav · saved 5 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {LogHeader: {Address: {is: "0x29469395eaf6f95920e59f858042f0e28d98a20b"}}, Log: {Signature: {Name: {is: "LoanOfferTaken"}}}, Arguments: {includes: [{Name: {is: "lender"}, Value: {Address: {is: "0xfa0e027fcb7ce300879f3729432cd505826eaabc"}}}]}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}

Similar queries