Fetch All Blockchain Transactions

This API is to fetch all blockchain transactions of a user


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/users
GRAPHQLstringQUERY
content-typestringJSONapplication/json
x-access-tokenstringsession token with validitytokenuser token

Request

{
  list_blockchain_txn_history(network:"solana",page_size:3,page_number:1){
    message
    data {
      blockNumber
      timeStamp
      hash
      nonce
      blockHash
      transactionIndex
      from
      to
      value
      gas
      gasPrice
      isError
      txreceipt_status
      input
      contractAddress
      cumulativeGasUsed
      gasUsed
      confirmations
      methodId
      functionName
      status
      token_address
      token_symbol
    }
  }
}

Request Parameters

FieldsTypeDescriptionRequired
page_sizeintegertotal number of data to be displayed
page_numberintegerpage number to filter data
networkstringthe network identifier from wallets' list of profile API

Success

{
    "data": {
        "list_blockchain_txn_history": {
            "message": "data listed",
            "data": [
                {
                    "blockNumber": null,
                    "timeStamp": "08-12-2022 14:20",
                    "hash": "5473rbujEFRCJBJUdh2v7b2UYniUhFLcbGSuFBNeQnqiT39eX98aAFU3mJ2NJSM2TeZUgvr9BQKBnArNnueLYURa",
                    "nonce": null,
                    "blockHash": null,
                    "transactionIndex": null,
                    "from": "AiEPUsSCS7MSAopZS81mvgKANquy1Tdw3d2TTtAVPLBX",
                    "to": "8jULEWgWBsFoxGGBGgrD3tBGFsXNcKrDzbHRNgkrnTZf",
                    "value": 0.001,
                    "gas": null,
                    "gasPrice": null,
                    "isError": null,
                    "txreceipt_status": null,
                    "input": null,
                    "contractAddress": null,
                    "cumulativeGasUsed": null,
                    "gasUsed": null,
                    "confirmations": null,
                    "methodId": null,
                    "functionName": null,
                    "status": "Success",
                    "token_address": null,
                    "token_symbol": null
                },
                {
                    "blockNumber": null,
                    "timeStamp": "08-12-2022 14:00",
                    "hash": "2R6YytAsgBvk6crLWGaQXbCgjPanKfsn58eo2bddtJdSsMPPBM6VCowdxBzsdWv97PMd3prVrEPHnHmUD19pyLp7",
                    "nonce": null,
                    "blockHash": null,
                    "transactionIndex": null,
                    "from": "AiEPUsSCS7MSAopZS81mvgKANquy1Tdw3d2TTtAVPLBX",
                    "to": "8jULEWgWBsFoxGGBGgrD3tBGFsXNcKrDzbHRNgkrnTZf",
                    "value": 0.001,
                    "gas": null,
                    "gasPrice": null,
                    "isError": null,
                    "txreceipt_status": null,
                    "input": null,
                    "contractAddress": null,
                    "cumulativeGasUsed": null,
                    "gasUsed": null,
                    "confirmations": null,
                    "methodId": null,
                    "functionName": null,
                    "status": "Success",
                    "token_address": null,
                    "token_symbol": null
                },
                {
                    "blockNumber": null,
                    "timeStamp": "07-12-2022 13:37",
                    "hash": "4XDxcxoyWe7MD8ohUxqAyERnSVcCoS5vRNnFJhFBH19zxAPodrvhu788hNzWJiBcXvnFxBwcyjpet2x9RpP1h7ic",
                    "nonce": null,
                    "blockHash": null,
                    "transactionIndex": null,
                    "from": "AiEPUsSCS7MSAopZS81mvgKANquy1Tdw3d2TTtAVPLBX",
                    "to": "8jULEWgWBsFoxGGBGgrD3tBGFsXNcKrDzbHRNgkrnTZf",
                    "value": 0.001,
                    "gas": null,
                    "gasPrice": null,
                    "isError": null,
                    "txreceipt_status": null,
                    "input": null,
                    "contractAddress": null,
                    "cumulativeGasUsed": null,
                    "gasUsed": null,
                    "confirmations": null,
                    "methodId": null,
                    "functionName": null,
                    "status": "Success",
                    "token_address": null,
                    "token_symbol": null
                }
            ]
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Unauthorized",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["list_blockchain_txn_history"]
        }
    ],
    "data": {
        "list_blockchain_txn_history": null
    }
}