@solana/rpc-transport
Advanced tools
Comparing version 2.0.0-experimental.b219d97 to 2.0.0-experimental.b5dd2ce
export declare const SolanaJsonRpcErrorCode: { | ||
readonly JSON_RPC_INVALID_PARAMS: -32602; | ||
readonly JSON_RPC_SCAN_ERROR: -32012; | ||
@@ -3,0 +4,0 @@ readonly JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP: -32001; |
{ | ||
"name": "@solana/rpc-transport", | ||
"version": "2.0.0-experimental.b219d97", | ||
"version": "2.0.0-experimental.b5dd2ce", | ||
"description": "Network transports for accessing the Solana JSON RPC API", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -0,1 +1,15 @@ | ||
[![npm][npm-image]][npm-url] | ||
[![npm-downloads][npm-downloads-image]][npm-url] | ||
[![semantic-release][semantic-release-image]][semantic-release-url] | ||
<br /> | ||
[![code-style-prettier][code-style-prettier-image]][code-style-prettier-url] | ||
[code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square | ||
[code-style-prettier-url]: https://github.com/prettier/prettier | ||
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/rpc-transport/experimental.svg?style=flat | ||
[npm-image]: https://img.shields.io/npm/v/@solana/rpc-transport/experimental.svg?style=flat | ||
[npm-url]: https://www.npmjs.com/package/@solana/rpc-transport/v/experimental | ||
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg | ||
[semantic-release-url]: https://github.com/semantic-release/semantic-release | ||
# @solana/rpc-transport | ||
@@ -26,3 +40,3 @@ | ||
```ts | ||
rpc.getBlocks(1, 20); | ||
rpc.getBlocks(1, 20).send(); | ||
``` | ||
@@ -40,3 +54,3 @@ | ||
return { | ||
// Optionally pre-process the method name, | ||
// Optionally pre-process the method name, | ||
methodName: 'getBlocksInRange', | ||
@@ -46,3 +60,3 @@ // Pre-process the inputs any way you like. | ||
// Provide an optional function to modify the response. | ||
responseProcessor: (response) => ({ | ||
responseProcessor: response => ({ | ||
confirmedBlocks: response, | ||
@@ -49,0 +63,0 @@ queryRange: [startSlot, endSlot], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122365
1203
83