Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/rpc-spec-types

Package Overview
Dependencies
Maintainers
0
Versions
970
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

  • 2.0.1-canary-20241112050646
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
decreased by-22.19%
Maintainers
0
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 the Solana JavaScript SDK @solana/web3.js@rc.

Types

RpcRequest

An object that describes the elements of an 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 an 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 an 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 an RpcResponse and returns another RpcResponse. This allows the RpcApi to transform the response before it is returned to the caller.

Keywords

FAQs

Package last updated on 12 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc