diff --git a/cmd/soroban-rpc/internal/methods/get_transaction.go b/cmd/soroban-rpc/internal/methods/get_transaction.go index 399243e3..ad0dac59 100644 --- a/cmd/soroban-rpc/internal/methods/get_transaction.go +++ b/cmd/soroban-rpc/internal/methods/get_transaction.go @@ -105,7 +105,10 @@ func GetTransaction( log.WithError(err). WithField("hash", txHash). Errorf("failed to fetch transaction") - return response, err + return response, &jrpc2.Error{ + Code: jrpc2.InternalError, + Message: err.Error(), + } } response.ApplicationOrder = tx.ApplicationOrder