@psalomo/jsonrpc-client 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -19
- package/dist/browser-standalone.js +1010 -68
- package/dist/browser-standalone.min.js +1 -1
- package/dist/chunk-GCIU6ZLN.mjs +395 -0
- package/dist/convenience-5WSFl5pu.d.mts +440 -0
- package/dist/convenience-5WSFl5pu.d.ts +440 -0
- package/dist/convenience.d.ts +9 -1
- package/dist/convenience.d.ts.map +1 -1
- package/dist/generated-types.d.ts +229 -1
- package/dist/generated-types.d.ts.map +1 -1
- package/dist/index.d.mts +137 -172
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +626 -51
- package/dist/index.mjs +673 -340
- package/dist/no-validation/index.d.mts +6 -0
- package/dist/no-validation/index.d.ts +9 -0
- package/dist/no-validation/index.d.ts.map +1 -0
- package/dist/no-validation/index.js +471 -0
- package/dist/no-validation/index.mjs +95 -0
- package/dist/validated/index.d.ts +168 -0
- package/dist/validated/index.d.ts.map +1 -0
- package/package.json +7 -2
@@ -0,0 +1,168 @@
|
|
1
|
+
import type { NearRpcClient } from '../client.js';
|
2
|
+
import type { AccessKeyView, AccountView, CallResult, CryptoHash, EXPERIMENTALMaintenanceWindowsResponse, EXPERIMENTALValidatorsOrderedResponse, GenesisConfig, GenesisConfigRequest, MaintenanceWindowsResponse, RpcBlockRequest, RpcBlockResponse, RpcChunkRequest, RpcChunkResponse, RpcClientConfigRequest, RpcClientConfigResponse, RpcCongestionLevelRequest, RpcCongestionLevelResponse, RpcGasPriceRequest, RpcGasPriceResponse, RpcHealthRequest, RpcHealthResponse, RpcLightClientBlockProofRequest, RpcLightClientBlockProofResponse, RpcLightClientExecutionProofRequest, RpcLightClientExecutionProofResponse, RpcLightClientNextBlockRequest, RpcLightClientNextBlockResponse, RpcMaintenanceWindowsRequest, RpcNetworkInfoRequest, RpcNetworkInfoResponse, RpcProtocolConfigRequest, RpcProtocolConfigResponse, RpcQueryRequest, RpcQueryResponse, RpcReceiptRequest, RpcReceiptResponse, RpcSendTransactionRequest, RpcSplitStorageInfoRequest, RpcSplitStorageInfoResponse, RpcStateChangesInBlockByTypeRequest, RpcStateChangesInBlockByTypeResponse, RpcStateChangesInBlockRequest, RpcStateChangesInBlockResponse, RpcStatusRequest, RpcStatusResponse, RpcTransactionResponse, RpcTransactionStatusRequest, RpcValidatorRequest, RpcValidatorResponse, RpcValidatorsOrderedRequest } from '@psalomo/jsonrpc-types';
|
3
|
+
export { parseCallResultToJson, viewFunctionAsJson } from '../convenience.js';
|
4
|
+
export declare function enableValidation(): void;
|
5
|
+
export declare function viewAccount(client: NearRpcClient, params: {
|
6
|
+
accountId: string;
|
7
|
+
finality?: 'final' | 'near-final' | 'optimistic';
|
8
|
+
blockId?: string | number;
|
9
|
+
}): Promise<AccountView>;
|
10
|
+
export declare function viewFunction(client: NearRpcClient, params: {
|
11
|
+
accountId: string;
|
12
|
+
methodName: string;
|
13
|
+
argsBase64?: string;
|
14
|
+
finality?: 'final' | 'near-final' | 'optimistic';
|
15
|
+
blockId?: string | number;
|
16
|
+
}): Promise<CallResult>;
|
17
|
+
export declare function viewAccessKey(client: NearRpcClient, params: {
|
18
|
+
accountId: string;
|
19
|
+
publicKey: string;
|
20
|
+
finality?: 'final' | 'near-final' | 'optimistic';
|
21
|
+
blockId?: string | number;
|
22
|
+
}): Promise<AccessKeyView>;
|
23
|
+
/**
|
24
|
+
* [Deprecated] Returns changes for a given account, contract or contract code
|
25
|
+
* for given block height or hash. Consider using changes instead.
|
26
|
+
*/
|
27
|
+
export declare function experimentalChanges(client: NearRpcClient, params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
|
28
|
+
/**
|
29
|
+
* [Deprecated] Returns changes in block for given block height or hash over
|
30
|
+
* all transactions for all the types. Includes changes like account_touched,
|
31
|
+
* access_key_touched, data_touched, contract_code_touched. Consider using
|
32
|
+
* block_effects instead
|
33
|
+
*/
|
34
|
+
export declare function experimentalChangesInBlock(client: NearRpcClient, params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
|
35
|
+
/**
|
36
|
+
* Queries the congestion level of a shard. More info about congestion
|
37
|
+
* [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
|
38
|
+
*/
|
39
|
+
export declare function experimentalCongestionLevel(client: NearRpcClient, params?: RpcCongestionLevelRequest): Promise<RpcCongestionLevelResponse>;
|
40
|
+
/**
|
41
|
+
* [Deprecated] Get initial state and parameters for the genesis block.
|
42
|
+
* Consider genesis_config instead.
|
43
|
+
*/
|
44
|
+
export declare function experimentalGenesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
45
|
+
/** Returns the proofs for a transaction execution. */
|
46
|
+
export declare function experimentalLightClientBlockProof(client: NearRpcClient, params?: RpcLightClientBlockProofRequest): Promise<RpcLightClientBlockProofResponse>;
|
47
|
+
/** Returns the proofs for a transaction execution. */
|
48
|
+
export declare function experimentalLightClientProof(client: NearRpcClient, params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
|
49
|
+
/**
|
50
|
+
* [Deprecated] Returns the future windows for maintenance in current epoch
|
51
|
+
* for the specified account. In the maintenance windows, the node will not be
|
52
|
+
* block producer or chunk producer. Consider using maintenance_windows
|
53
|
+
* instead.
|
54
|
+
*/
|
55
|
+
export declare function experimentalMaintenanceWindows(client: NearRpcClient, params?: RpcMaintenanceWindowsRequest): Promise<EXPERIMENTALMaintenanceWindowsResponse>;
|
56
|
+
/**
|
57
|
+
* A configuration that defines the protocol-level parameters such as
|
58
|
+
* gas/storage costs, limits, feature flags, other settings
|
59
|
+
*/
|
60
|
+
export declare function experimentalProtocolConfig(client: NearRpcClient, params?: RpcProtocolConfigRequest): Promise<RpcProtocolConfigResponse>;
|
61
|
+
/** Fetches a receipt by its ID (as is, without a status or execution outcome) */
|
62
|
+
export declare function experimentalReceipt(client: NearRpcClient, params?: RpcReceiptRequest): Promise<RpcReceiptResponse>;
|
63
|
+
/**
|
64
|
+
* Contains the split storage information. More info on split storage
|
65
|
+
* [here](https://near-nodes.io/archival/split-storage-archival)
|
66
|
+
*/
|
67
|
+
export declare function experimentalSplitStorageInfo(client: NearRpcClient, params?: RpcSplitStorageInfoRequest): Promise<RpcSplitStorageInfoResponse>;
|
68
|
+
/**
|
69
|
+
* Queries status of a transaction by hash, returning the final transaction
|
70
|
+
* result and details of all receipts.
|
71
|
+
*/
|
72
|
+
export declare function experimentalTxStatus(client: NearRpcClient, params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
|
73
|
+
/**
|
74
|
+
* Returns the current epoch validators ordered in the block producer order
|
75
|
+
* with repetition. This endpoint is solely used for bridge currently and is
|
76
|
+
* not intended for other external use cases.
|
77
|
+
*/
|
78
|
+
export declare function experimentalValidatorsOrdered(client: NearRpcClient, params?: RpcValidatorsOrderedRequest): Promise<EXPERIMENTALValidatorsOrderedResponse>;
|
79
|
+
/** Returns block details for given height or hash */
|
80
|
+
export declare function block(client: NearRpcClient, params?: RpcBlockRequest): Promise<RpcBlockResponse>;
|
81
|
+
/**
|
82
|
+
* Returns changes in block for given block height or hash over all
|
83
|
+
* transactions for all the types. Includes changes like account_touched,
|
84
|
+
* access_key_touched, data_touched, contract_code_touched.
|
85
|
+
*/
|
86
|
+
export declare function blockEffects(client: NearRpcClient, params?: RpcStateChangesInBlockRequest): Promise<RpcStateChangesInBlockByTypeResponse>;
|
87
|
+
/**
|
88
|
+
* [Deprecated] Sends a transaction and immediately returns transaction hash.
|
89
|
+
* Consider using send_tx instead.
|
90
|
+
*/
|
91
|
+
export declare function broadcastTxAsync(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<CryptoHash>;
|
92
|
+
/**
|
93
|
+
* [Deprecated] Sends a transaction and waits until transaction is fully
|
94
|
+
* complete. (Has a 10 second timeout). Consider using send_tx instead.
|
95
|
+
*/
|
96
|
+
export declare function broadcastTxCommit(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
|
97
|
+
/**
|
98
|
+
* Returns changes for a given account, contract or contract code for given
|
99
|
+
* block height or hash.
|
100
|
+
*/
|
101
|
+
export declare function changes(client: NearRpcClient, params?: RpcStateChangesInBlockByTypeRequest): Promise<RpcStateChangesInBlockResponse>;
|
102
|
+
/**
|
103
|
+
* Returns details of a specific chunk. You can run a block details query to
|
104
|
+
* get a valid chunk hash.
|
105
|
+
*/
|
106
|
+
export declare function chunk(client: NearRpcClient, params?: RpcChunkRequest): Promise<RpcChunkResponse>;
|
107
|
+
/** Queries client node configuration */
|
108
|
+
export declare function clientConfig(client: NearRpcClient, params?: RpcClientConfigRequest): Promise<RpcClientConfigResponse>;
|
109
|
+
/**
|
110
|
+
* Returns gas price for a specific block_height or block_hash. Using [null]
|
111
|
+
* will return the most recent block's gas price.
|
112
|
+
*/
|
113
|
+
export declare function gasPrice(client: NearRpcClient, params?: RpcGasPriceRequest): Promise<RpcGasPriceResponse>;
|
114
|
+
/** Get initial state and parameters for the genesis block */
|
115
|
+
export declare function genesisConfig(client: NearRpcClient, params?: GenesisConfigRequest): Promise<GenesisConfig>;
|
116
|
+
/** Returns the current health status of the RPC node the client connects to. */
|
117
|
+
export declare function health(client: NearRpcClient, params?: RpcHealthRequest): Promise<RpcHealthResponse>;
|
118
|
+
/** Returns the proofs for a transaction execution. */
|
119
|
+
export declare function lightClientProof(client: NearRpcClient, params?: RpcLightClientExecutionProofRequest): Promise<RpcLightClientExecutionProofResponse>;
|
120
|
+
/**
|
121
|
+
* Returns the future windows for maintenance in current epoch for the
|
122
|
+
* specified account. In the maintenance windows, the node will not be block
|
123
|
+
* producer or chunk producer.
|
124
|
+
*/
|
125
|
+
export declare function maintenanceWindows(client: NearRpcClient, params?: RpcMaintenanceWindowsRequest): Promise<MaintenanceWindowsResponse>;
|
126
|
+
/**
|
127
|
+
* Queries the current state of node network connections. This includes
|
128
|
+
* information about active peers, transmitted data, known producers, etc.
|
129
|
+
*/
|
130
|
+
export declare function networkInfo(client: NearRpcClient, params?: RpcNetworkInfoRequest): Promise<RpcNetworkInfoResponse>;
|
131
|
+
/** Returns the next light client block. */
|
132
|
+
export declare function nextLightClientBlock(client: NearRpcClient, params?: RpcLightClientNextBlockRequest): Promise<RpcLightClientNextBlockResponse>;
|
133
|
+
/**
|
134
|
+
* This module allows you to make generic requests to the network. The
|
135
|
+
* `RpcQueryRequest` struct takes in a
|
136
|
+
* [`BlockReference`](https://docs.rs/near-primitives/0.12.0/near_primitives/types/enum.BlockReference.html)
|
137
|
+
* and a
|
138
|
+
* [`QueryRequest`](https://docs.rs/near-primitives/0.12.0/near_primitives/views/enum.QueryRequest.html).
|
139
|
+
* The `BlockReference` enum allows you to specify a block by `Finality`,
|
140
|
+
* `BlockId` or `SyncCheckpoint`. The `QueryRequest` enum provides multiple
|
141
|
+
* variants for performing the following actions: - View an account's details
|
142
|
+
* - View a contract's code - View the state of an account - View the
|
143
|
+
* `AccessKey` of an account - View the `AccessKeyList` of an account - Call a
|
144
|
+
* function in a contract deployed on the network.
|
145
|
+
*/
|
146
|
+
export declare function query(client: NearRpcClient, params?: RpcQueryRequest): Promise<RpcQueryResponse>;
|
147
|
+
/**
|
148
|
+
* Sends transaction. Returns the guaranteed execution status and the results
|
149
|
+
* the blockchain can provide at the moment.
|
150
|
+
*/
|
151
|
+
export declare function sendTx(client: NearRpcClient, params?: RpcSendTransactionRequest): Promise<RpcTransactionResponse>;
|
152
|
+
/**
|
153
|
+
* Requests the status of the connected RPC node. This includes information
|
154
|
+
* about sync status, nearcore node version, protocol version, the current set
|
155
|
+
* of validators, etc.
|
156
|
+
*/
|
157
|
+
export declare function status(client: NearRpcClient, params?: RpcStatusRequest): Promise<RpcStatusResponse>;
|
158
|
+
/**
|
159
|
+
* Queries status of a transaction by hash and returns the final transaction
|
160
|
+
* result.
|
161
|
+
*/
|
162
|
+
export declare function tx(client: NearRpcClient, params?: RpcTransactionStatusRequest): Promise<RpcTransactionResponse>;
|
163
|
+
/**
|
164
|
+
* Queries active validators on the network. Returns details and the state of
|
165
|
+
* validation on the blockchain.
|
166
|
+
*/
|
167
|
+
export declare function validators(client: NearRpcClient, params?: RpcValidatorRequest): Promise<RpcValidatorResponse>;
|
168
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validated/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,EACV,sCAAsC,EACtC,qCAAqC,EACrC,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,+BAA+B,EAC/B,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,8BAA8B,EAC9B,+BAA+B,EAC/B,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,mCAAmC,EACnC,oCAAoC,EACpC,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,wBAAwB,CAAC;AAiDhC,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG9E,wBAAgB,gBAA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O,CAAC,oBAAoB,CAAC,CAwB/B"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@psalomo/jsonrpc-client",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "TypeScript client for NEAR Protocol JSON-RPC API",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -10,6 +10,11 @@
|
|
10
10
|
"types": "./dist/index.d.ts",
|
11
11
|
"import": "./dist/index.mjs",
|
12
12
|
"require": "./dist/index.js"
|
13
|
+
},
|
14
|
+
"./no-validation": {
|
15
|
+
"types": "./dist/no-validation/index.d.ts",
|
16
|
+
"import": "./dist/no-validation/index.mjs",
|
17
|
+
"require": "./dist/no-validation/index.js"
|
13
18
|
}
|
14
19
|
},
|
15
20
|
"files": [
|
@@ -30,7 +35,7 @@
|
|
30
35
|
"test:coverage": "vitest run --coverage"
|
31
36
|
},
|
32
37
|
"dependencies": {
|
33
|
-
"@psalomo/jsonrpc-types": "^1.
|
38
|
+
"@psalomo/jsonrpc-types": "^1.3.0"
|
34
39
|
},
|
35
40
|
"devDependencies": {
|
36
41
|
"@rollup/plugin-node-resolve": "^16.0.1",
|