# JSONRPC2

> 

Types for the JSON-RPC 2.0 messages tRPC's envelopes build on.

## See

https://www.jsonrpc.org/specification

## Interfaces

- [BaseEnvelope](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/BaseEnvelope.md)
- [BaseRequest](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/BaseRequest.md)
- [ErrorResponse](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ErrorResponse.md)
- [Request](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/Request.md)
- [ResultResponse](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/interfaces/ResultResponse.md)

## Type Aliases

- [RequestId](https://trpc.io/docs/typedoc/server/rpc/namespaces/JSONRPC2/type-aliases/RequestId.md)
