diff --git a/jsonrpc/backend/tx.go b/jsonrpc/backend/tx.go index 5c57db6..3fb76e0 100644 --- a/jsonrpc/backend/tx.go +++ b/jsonrpc/backend/tx.go @@ -184,8 +184,8 @@ func (b *JSONRPCBackend) GetTransactionReceipt(hash common.Hash) (map[string]int rpcTx, err := b.getTransaction(hash) if err != nil { return nil, err - } else if rpcTx == nil { - return nil, nil // tx is not found + } else if rpcTx == nil || rpcTx.BlockNumber == nil || rpcTx.BlockNumber.ToInt() == nil { + return nil, nil // tx is not found or in pending/queued state } receipt, err := b.getReceipt(hash)