GetPendingTxns


Returns the status (code) of all unconfirmed Transactions.

Please refer to GetPendingTxn for details on API availability and status codes.

Example Request

curl -d '{
"id": "1",
"jsonrpc": "2.0",
"method": "GetPendingTxns",
"params": []
}' -H "Content-Type: application/json" -X POST "https://api.zilliqa.com/"

Example Response

Since Zilliqa V6.3.0

{
"id": "1",
"jsonrpc": "2.0",
"result": {
"Txns": [
{
"TxnHash": "ec5ef8110a285563d0104269081aa77820058067091a9b3f3ae70f38b94abda3",
"code": 1
},
{
"TxnHash": "cf546d80fa2e0cc0b5b8f9fbb639050fe292d1601aa5d4a7c48106c624311bf9",
"code": 24
}
]
}
}

Zilliqa V6.2.0 and before

{
"id": "1",
"jsonrpc": "2.0",
"result": {
"Txns": [
{
"Status": 1,
"TxnHash": "ec5ef8110a285563d0104269081aa77820058067091a9b3f3ae70f38b94abda3",
}
]
}
}

HTTP Request

Chain(s)URL(s)
Zilliqa mainnethttps://api.zilliqa.com/
Developer testnethttps://dev-api.zilliqa.com/
Local testnethttp://localhost:4201/
Isolated serverhttp://localhost:5555/

Arguments

ParameterTypeRequiredDescription
idstringRequired"1"
jsonrpcstringRequired"2.0"
methodstringRequired"GetPendingTxns"
paramsNone