Transactions not found

Why sometimes below API’s returns empty response for fetching next transaction hashes or transaction details from the hash.

At the same time, I checked on explorer and there it was showing 404 Not found error, but after some time/days, it started working.

I’m using these APIs on api.mainnet-beta.solana.com.

API’s:

curl --location --request POST ‘–’ \

–header ‘Content-Type: application/json’ \

–data-raw '{

"jsonrpc": "2.0",

"id": 1,

"method": "getConfirmedSignaturesForAddress2",

"params": [

    "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin",

    {

        "limit": 1000,

        "before": "WxLdK6er17ZDPEnLZCqoh4YBwkR2pXyq1tgP6UQGkqriXHDTm6KnEHGskXtAseQsQDjSwSjXWTmmJEjTYXc6Y6S"

    }

]

}’

curl --location --request POST ‘–’ \

–header ‘Content-Type: application/json’ \

–data-raw ’

{

"jsonrpc": "2.0",

"id": 1,

"method": "getConfirmedTransaction",

"params": [

  "64rumBX6tXMZxyRLp2LgfYNcxsLb6yQQpLhNUm4utLnMjUxTVfmtUmNGba4Hu9U431R5S1khK9Hj6FhzXw49ag7h"

]

}