diff --git a/src/rpc/server.ts b/src/rpc/server.ts index a13d78a2..bf329c64 100644 --- a/src/rpc/server.ts +++ b/src/rpc/server.ts @@ -337,7 +337,15 @@ export class Server { reply.rpcStatus = "success" this.fastify.log.info( { - data: JSON.stringify(jsonRpcResponse), + data: + bundlerRequest.method === + "eth_getUserOperationReceipt" && + jsonRpcResponse.result + ? { + ...jsonRpcResponse, + result: "" + } + : jsonRpcResponse, // do not log the full result for eth_getUserOperationReceipt to reduce log size method: bundlerRequest.method }, "sent reply"