Socket
Book a DemoInstallSign in
Socket

@solana/rpc-spec-types

Package Overview
Dependencies
Maintainers
1
Versions
1414
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-spec-types

Shared generic JSON RPC specifications

3x
latest
Source
npmnpm
Version
3.0.3
Version published
Weekly downloads
233K
24.45%
Maintainers
1
Weekly downloads
 
Created
Source

npm npm-downloads
code-style-prettier

@solana/rpc-spec-types

This package contains core types that can be used on both RPC and RPC Subscriptions specifications. It can be used standalone, but it is also exported as part of Kit @solana/kit.

Types

RpcRequest

An object that describes the elements of a RPC or RPC Subscriptions request. It consists of the following properties:

  • methodName: The name of the RPC method or subscription requested.
  • params: The parameters to be passed to the RPC server.

RpcRequestTransformer

A function that accepts a RpcRequest and returns another RpcRequest. This allows the RpcApi to transform the request before it is sent to the RPC server.

RpcResponse

A type that represents the response from a RPC server. This could be any sort of data which is why RpcResponse defaults to unknown. You may use a type parameter to specify the shape of the response — e.g. RpcResponse<{ result: number }>.

RpcResponseTransformer

A function that accepts a RpcResponse and returns another RpcResponse. This allows the RpcApi to transform the response before it is returned to the caller.

Keywords

blockchain

FAQs

Package last updated on 11 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts