@elsoul/erpc-sdk 0.9.0 → 0.9.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 +27 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,17 +7,18 @@ account information. Base is exposed as a read-only JSON-RPC facade; caller-owne
|
|
|
7
7
|
direct endpoints can be selected for Base, Solana, Ethereum, and Avalanche
|
|
8
8
|
C-Chain JSON-RPC.
|
|
9
9
|
|
|
10
|
-
The Base facade documented below
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
The Base facade documented below has been available since `0.9.0`. This
|
|
11
|
+
source/release cohort targets `0.9.1`; check the
|
|
12
|
+
[npm registry versions](https://registry.npmjs.org/%40elsoul%2Ferpc-sdk) for
|
|
13
|
+
current package availability.
|
|
13
14
|
|
|
14
15
|
## Install
|
|
15
16
|
|
|
16
17
|
```bash
|
|
17
|
-
#
|
|
18
|
-
npm install @elsoul/erpc-sdk@0.9.
|
|
19
|
-
# or: pnpm add @elsoul/erpc-sdk@0.9.
|
|
20
|
-
#
|
|
18
|
+
# After the npm registry lists 0.9.1:
|
|
19
|
+
npm install @elsoul/erpc-sdk@0.9.1
|
|
20
|
+
# or: pnpm add @elsoul/erpc-sdk@0.9.1
|
|
21
|
+
# For local validation, use the public 0.9.0 package or this source checkout.
|
|
21
22
|
```
|
|
22
23
|
|
|
23
24
|
The package includes its ESM, CommonJS, and TypeScript declarations. Node.js 20
|
|
@@ -104,10 +105,10 @@ and ERPC REST, native, and index services fail locally. The
|
|
|
104
105
|
`RpcEndpointConfig.headers` field applies to direct HTTP requests only; those
|
|
105
106
|
headers are never sent on WSS connections.
|
|
106
107
|
|
|
107
|
-
## Base read-only RPC (`0.9.0`
|
|
108
|
+
## Base read-only RPC (available since `0.9.0`)
|
|
108
109
|
|
|
109
|
-
The `0.9.0`
|
|
110
|
-
|
|
110
|
+
The `0.9.0` API-key client uses `https://base.erpc.global/` at the root JSON-RPC
|
|
111
|
+
path.
|
|
111
112
|
The first check for a Base connection should be `eth_chainId()` and must return
|
|
112
113
|
`0x2105` (Base mainnet). The following uses the catalog's Base EURC record and
|
|
113
114
|
formats the raw response with integer arithmetic:
|
|
@@ -400,25 +401,20 @@ Mayan authentication has three separate layers:
|
|
|
400
401
|
| SDK policy | `buildUnsigned` requires `builderApiKey` by default; `allowUnauthenticatedBuild: true` only permits the caller's keyless HTTP attempt. |
|
|
401
402
|
| Dated hosted observation | On 2026-09-17, four EURC/USDC quotes returned HTTP 200 without keys; default builds made no request, while explicit keyless `/build` attempts returned HTTP 401. This is bounded evidence, not a permanent provider requirement. |
|
|
402
403
|
|
|
403
|
-
The
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
The public `0.9.0` package supports the reviewed issued EURC directions and
|
|
405
|
+
native USDC direct routes. Native USDC uses Mayan's direct SWIFT route and does
|
|
406
|
+
not add Jupiter or another hosted source-swap dependency.
|
|
406
407
|
|
|
407
|
-
The
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
in the published `0.8.1` package; its package version and release publication
|
|
411
|
-
remain future work.
|
|
412
|
-
|
|
413
|
-
The `0.8.1` maintenance patch updates the Workers fetch invocation boundary;
|
|
414
|
-
it does not include the new native USDC or local unsigned-builder paths.
|
|
408
|
+
The `0.8.1` maintenance patch updated the Workers fetch invocation boundary;
|
|
409
|
+
it did not include the native USDC or local unsigned-builder paths that are
|
|
410
|
+
present in the public `0.9.0` package.
|
|
415
411
|
|
|
416
412
|
### Local unsigned construction
|
|
417
413
|
|
|
418
|
-
The
|
|
419
|
-
reviewed EURC and native USDC directions. Pass a hosted normalized quote
|
|
420
|
-
fresh public 16-byte `orderNonce` to `prepareSourceSwap`, then pass its
|
|
421
|
-
`buildLocalUnsigned`:
|
|
414
|
+
The public `0.9.0` package exposes an explicit keyless construction path for
|
|
415
|
+
the reviewed EURC and native USDC directions. Pass a hosted normalized quote
|
|
416
|
+
and a fresh public 16-byte `orderNonce` to `prepareSourceSwap`, then pass its
|
|
417
|
+
plan to `buildLocalUnsigned`:
|
|
422
418
|
|
|
423
419
|
```ts
|
|
424
420
|
const localClient = createMayanSwiftV2BridgeClient({
|
|
@@ -452,9 +448,11 @@ signs, submits, broadcasts, or claims settlement. The caller owns wallet
|
|
|
452
448
|
custody and all signing and ERPC broadcast steps described in the
|
|
453
449
|
[TypeScript signing and broadcast guide](https://github.com/elsoul/erpc-sdk/blob/main/packages/typescript/docs/signing-and-broadcast.md).
|
|
454
450
|
|
|
455
|
-
These local methods and native USDC routes are
|
|
456
|
-
|
|
457
|
-
|
|
451
|
+
These local methods and native USDC routes are included in the public `0.9.0`
|
|
452
|
+
baseline and the source/release cohort targets `0.9.1`. The bridge API remains
|
|
453
|
+
an explicit standalone EURC/native-USDC adapter with optional external provider
|
|
454
|
+
dependencies and configured source-RPC requirements, while normal swaps
|
|
455
|
+
continue to use configured RPC and local logic.
|
|
458
456
|
|
|
459
457
|
## Namespaces
|
|
460
458
|
|
|
@@ -545,7 +543,7 @@ const monthlyUsage = await cloud.usage.getMonthlyApiKeyUsage()
|
|
|
545
543
|
|
|
546
544
|
Catalog, credit, and resource results are projected onto documented public
|
|
547
545
|
fields. Interactive login and operating-system keychain storage belong to
|
|
548
|
-
|
|
546
|
+
the ERPC command-line client.
|
|
549
547
|
|
|
550
548
|
## Raw methods
|
|
551
549
|
|