Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@solana/rpc-spec-types
Advanced tools
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
.
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.
FAQs
Shared generic JSON RPC specifications
The npm package @solana/rpc-spec-types receives a total of 5,130 weekly downloads. As such, @solana/rpc-spec-types popularity was classified as popular.
We found that @solana/rpc-spec-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.