Jump to Content
Alchemy Docs
HomeTutorialsRecipesAPI ReferenceChangelogFAQ
Alchemy LoginAlchemy Docs
Alchemy Login
HomeTutorialsRecipesAPI ReferenceChangelogFAQ

FAQ

Ask a Question
ANSWERED

Does getTransaction return null if the transaction was dropped?

In order to correctly show pending transactions on the correct screen of my app I manually save them in an array and then when they are mined they are removed thanks to a webhook. However, sometimes the array is not automatically cleared if the transaction is dropped. I am currently using (https://docs.alchemy.com/reference/sdk-gettransaction) getTransaction and it seems that transactions that have been dropped return null while still pending transactions return an actual object. Is it correct to assume that I can manually clear dropped transactions by checking if they return null or will this not always be correct?
gettransaction
Posted by [email protected] 5 months ago
  • FAQs
  • Recent
  • Unanswered
429 erroraccount supportaccount tieraccountsaddress activity webhookalchemyalchemy apialchemy composeralchemy mempoolalchemy sdkalchemy transactalchemy-sdkalchemy_getassettransfersarchive dataastar apibillingcapacity limitschainscompute unitsconcurrent transactionscorecostscucupsdefienhanced apienterpriseerc-20 token tutorialerc2771erc721error 429eth transferseth_calleth_getcodeethereum apievents logevm tracesgasgas estimationgetassettransfersgetblocknumbergetcodegetcontractmetadatagetfloorpricegetlogsgetnftgetnftsgetnftsalesgetnftsforcollectiongetnftsforcontractgetnftsforownergetnftsforowneriteratorgetownersforcollectiongetownersforcontractgetprogramaccountsgettransactiongettransactionreceiptinvalidatecontractipfs gatewayjson-rpcmeta transactionsnftnft apinft cdnnft metadatanoncenotify apipolygonpolygon apipricingrate limitsreinforced transactionsroad to web3sdk websockets endpointsslasmart contractssolana apisolana websocketspam nftssubscription apiteamthroughputtransactiontransaction receipt apitransactionstransfer apitransfers apiusagevideo nftwebhookwebhookswebsocketwebsockets