Skip to content

Get current pending transactions

shell
GET: {{endpoint}}/v1/transaction/pending/:chain

Headers

KeyTypeValueDescription
x-api-keystringkey_xxxxxxxxxxxxxxxxxxxxAPI Key string
x-signaturestringSHA256The HMAC SHA256 signature.
x-timestampstring1730998051892Timestamp of the request

Path variables

KeyTypeDescription
chainstringThe Chain ID to query pending transactions

Response Parameters

The final response in the stream also includes additional data about the generation:

  • withdrawalId: the withdrawal id
  • chain: the chain-id
  • serializedTransaction: the serialized transaction
  • decodedTransaction: the decoded transaction
  • hashes: (Array) the hashes
  • index: the index
  • withdrawalResponses: the withdrawal responses
  • signatures: the signatures
  • id: the id of the transaction
  • decodedTransaction: the decoded transaction
    • visible: the visible
    • txID: the transaction id
    • raw_data_hex: the raw data hex
    • raw_data: the raw data
      • ref_block_bytes: the ref block bytes
      • ref_block_hash: the ref block hash
      • expiration: the expiration
      • timestamp: the timestamp
      • contract: (Array) the contract
        • type: the type
        • parameter: the parameter
          • type_url: the type url
          • value: the value
            • to_address: the to address
            • owner_address: the owner address
            • amount: the amount
Example Response
json
{
  "data": [
    {
      "withdrawalId": null,
      "chain": "TRON",
      "serializedTransaction": "{\"visible\":false,\"txID\":\"c0c655de09cf318e292a0cea94f549f3a50cb6c998ff31b60c98028150d6e7ed\",\"raw_data_hex\":\"0a02202422083d66ebb6f72a7e044090c0f5d4a9325a67080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541d14ae18e286517c9ef897fe3a0323633c29589281215411b1018b9f81ee3f8386214a860d9a1f7a22b1fc918c0843d70b0ebf1d4a932\",\"raw_data\":{\"contract\":[{\"parameter\":{\"value\":{\"to_address\":\"411b1018b9f81ee3f8386214a860d9a1f7a22b1fc9\",\"owner_address\":\"41d14ae18e286517c9ef897fe3a0323633c2958928\",\"amount\":1000000},\"type_url\":\"type.googleapis.com/protocol.TransferContract\"},\"type\":\"TransferContract\"}],\"ref_block_bytes\":\"2024\",\"ref_block_hash\":\"3d66ebb6f72a7e04\",\"expiration\":1729170858000,\"timestamp\":1729170798000}}",
      "hashes": [
        "4b93dc92-6046-41b1-8d8e-8f63f2c3c43c"
      ],
      "index": null,
      "withdrawalResponses": null,
      "signatures": null,
      "id": "67110d70da538076bba824f5",
      "decodedTransaction": {
        "visible": false,
        "txID": "c0c655de09cf318e292a0cea94f549f3a50cb6c998ff31b60c98028150d6e7ed",
        "raw_data_hex": "0a02202422083d66ebb6f72a7e044090c0f5d4a9325a67080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541d14ae18e286517c9ef897fe3a0323633c29589281215411b1018b9f81ee3f8386214a860d9a1f7a22b1fc918c0843d70b0ebf1d4a932",
        "raw_data": {
          "ref_block_bytes": "2024",
          "ref_block_hash": "3d66ebb6f72a7e04",
          "expiration": 1729170858000,
          "timestamp": 1729170798000,
          "contract": [
            {
              "type": "TransferContract",
              "parameter": {
                "type_url": "type.googleapis.com/protocol.TransferContract",
                "value": {
                  "to_address": "411b1018b9f81ee3f8386214a860d9a1f7a22b1fc9",
                  "owner_address": "41d14ae18e286517c9ef897fe3a0323633c2958928",
                  "amount": 1000000
                }
              }
            }
          ]
        }
      }
    },
    { ... }
  ]
}
json
{
  "error": "Error message"
}
json
{
  "error": "Forbidden"
}