Docs

user_transactions

Querying user transactions by sender

Coming soon: Need support for this? Email support@dwellir.com and we will enable it for you.

Overview

Query transactions submitted by a specific address.

Query Structure

graphql
query GetUserTransactions($address: String!, $limit: Int) {
  user_transactions(
    where: { sender: { _eq: $address } }
    limit: $limit
    order_by: { version: desc }
  ) {
    version
    hash
    success
    vm_status
    gas_used
  }
}

Variables

NameTypeRequiredDescription
addressStringYesAccount address
limitIntNoResult limit

Code Examples

Text
import requests
query = """query GetUserTransactions($address: String!, $limit: Int) { user_transactions(where: { sender: { _eq: $address } }, limit: $limit, order_by: { version: desc }) { version hash success vm_status gas_used } }"""
variables = {"address": "0x1", "limit": 10}
requests.post("https://api-aptos-mainnet.n.dwellir.com/YOUR_API_KEY/v1/graphql", json={"query": query, "variables": variables})