@rpckit/http 1.0.0 → 1.0.1
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 +2 -2
- package/dist/electrum-cash/http.d.ts +1 -1
- package/dist/electrum-cash/http.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ await transport.close()
|
|
|
23
23
|
|
|
24
24
|
## Electrum Cash Variant
|
|
25
25
|
|
|
26
|
-
For Electrum Cash servers, use the `electrum-cash` subpath which pre-configures the `
|
|
26
|
+
For Electrum Cash servers, use the `electrum-cash` subpath which pre-configures the `Server-Version` header:
|
|
27
27
|
|
|
28
28
|
```typescript
|
|
29
29
|
import { http } from '@rpckit/http/electrum-cash'
|
|
@@ -34,7 +34,7 @@ const tip = await transport.request('blockchain.headers.get_tip')
|
|
|
34
34
|
|
|
35
35
|
The electrum-cash variant also accepts:
|
|
36
36
|
|
|
37
|
-
- `clientName` - Client name sent in
|
|
37
|
+
- `clientName` - Client name sent in Server-Version header (default: `'rpckit'`)
|
|
38
38
|
- `protocolVersion` - Protocol version (default: `'1.6'`)
|
|
39
39
|
|
|
40
40
|
## Ethereum Variant
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnySchema, HttpTransportConfig, Schema, Transport } from '@rpckit/core';
|
|
2
2
|
export interface ElectrumHttpConfig extends HttpTransportConfig {
|
|
3
|
-
/** Client name sent in
|
|
3
|
+
/** Client name sent in Server-Version header (default: 'rpckit') */
|
|
4
4
|
clientName?: string;
|
|
5
5
|
/** Electrum protocol version (default: '1.6') */
|
|
6
6
|
protocolVersion?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpckit/http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "HTTP transport for rpckit with request batching",
|
|
5
5
|
"author": "mainnet_pat",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"build": "tsc"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@rpckit/core": "^1.0.
|
|
50
|
+
"@rpckit/core": "^1.0.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"typescript": "^5.7.0"
|