Skip to content

Commit 9611b7c

Browse files
v0.6.0 - SKALE Base and SKALE Base Sepolia
1 parent 2c8100c commit 9611b7c

7 files changed

Lines changed: 45 additions & 3 deletions

File tree

sdk-python/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ Networks use [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/cai
136136
| Arbitrum | `eip155:42161` | Custom required |
137137
| Optimism | `eip155:10` | Custom required |
138138
| Polygon | `eip155:137` | Custom required |
139+
| SKALE Base | `eip155:1187947933` | Primer |
140+
| SKALE Base Sepolia | `eip155:324705682` | Primer |
139141

140142
> Legacy network names (`'base'`, `'ethereum'`) are accepted for compatibility but CAIP-2 is recommended.
141143
@@ -293,6 +295,10 @@ Or install skill from ClawHub: `clawhub install primer/x402`
293295

294296
## Changelog
295297

298+
### v0.6.0
299+
- **SKALE network support**: Added SKALE Base (`eip155:1187947933`) and SKALE Base Sepolia (`eip155:324705682`) networks
300+
- Gas-free transactions on SKALE with Primer facilitator support
301+
296302
### v0.5.0
297303
- **CLI**: New command-line interface (`x402 ...`)
298304
- **Wallet utilities**: `create_wallet()`, `get_balance()`, `x402_probe()`

sdk-python/primer_x402/utils.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,21 @@ class NetworkConfig:
264264
legacy_name="polygon-amoy",
265265
rpc_url="https://rpc-amoy.polygon.technology"
266266
),
267+
# SKALE
268+
"eip155:1187947933": NetworkConfig(
269+
name="SKALE Base",
270+
chain_id=1187947933,
271+
caip_id="eip155:1187947933",
272+
legacy_name="skale-base",
273+
rpc_url="https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"
274+
),
275+
"eip155:324705682": NetworkConfig(
276+
name="SKALE Base Sepolia",
277+
chain_id=324705682,
278+
caip_id="eip155:324705682",
279+
legacy_name="skale-base-sepolia",
280+
rpc_url="https://testnet.skalenodes.com/v1/juicy-low-small-testnet"
281+
),
267282
}
268283

269284

sdk-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "primer-x402"
7-
version = "0.5.1"
7+
version = "0.6.0"
88
description = "Python SDK for x402 payments - pay and charge for APIs with stablecoins. OpenClaw compatible."
99
readme = "README.md"
1010
license = {text = "MIT"}

sdk-typescript/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ Networks use [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/cai
158158
| eip155:11155420 | 11155420 | optimism-sepolia | Custom required |
159159
| eip155:137 | 137 | polygon | Custom required |
160160
| eip155:80002 | 80002 | polygon-amoy | Custom required |
161+
| eip155:1187947933 | 1187947933 | skale-base | ✓ Primer |
162+
| eip155:324705682 | 324705682 | skale-base-sepolia | ✓ Primer |
161163

162164
> **Note:** Legacy network names (e.g., `'base'`) are still accepted for backward compatibility but CAIP-2 format is recommended.
163165
@@ -514,6 +516,10 @@ x402 openclaw init
514516
515517
## Changelog
516518
519+
### v0.6.0
520+
- **SKALE network support**: Added SKALE Base (`eip155:1187947933`) and SKALE Base Sepolia (`eip155:324705682`) networks
521+
- Gas-free transactions on SKALE with Primer facilitator support
522+
517523
### v0.5.0
518524
- **CLI**: New command-line interface (`npx @primersystems/x402 ...`)
519525
- **Wallet utilities**: `createWallet()`, `walletFromMnemonic()`, `getBalance()`, `x402Probe()`

sdk-typescript/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type WalletClient = any;
99
// Networks
1010
// ============================================
1111

12-
export type NetworkName = 'base' | 'base-sepolia';
12+
export type NetworkName = 'base' | 'base-sepolia' | 'skale-base' | 'skale-base-sepolia';
1313

1414
export interface NetworkConfig {
1515
name: string;

sdk-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primersystems/x402",
3-
"version": "0.5.1",
3+
"version": "0.6.0",
44
"description": "TypeScript SDK for x402 payments - pay and charge for APIs with stablecoins. OpenClaw compatible.",
55
"main": "index.js",
66
"types": "index.d.ts",

sdk-typescript/utils.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,21 @@ const NETWORKS = {
102102
caipId: 'eip155:80002',
103103
legacyName: 'polygon-amoy',
104104
rpcUrl: process.env.RPC_POLYGON_AMOY || 'https://rpc-amoy.polygon.technology'
105+
},
106+
// SKALE
107+
'eip155:1187947933': {
108+
name: 'SKALE Base',
109+
chainId: 1187947933,
110+
caipId: 'eip155:1187947933',
111+
legacyName: 'skale-base',
112+
rpcUrl: process.env.RPC_SKALE_BASE || 'https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague'
113+
},
114+
'eip155:324705682': {
115+
name: 'SKALE Base Sepolia',
116+
chainId: 324705682,
117+
caipId: 'eip155:324705682',
118+
legacyName: 'skale-base-sepolia',
119+
rpcUrl: process.env.RPC_SKALE_BASE_SEPOLIA || 'https://testnet.skalenodes.com/v1/juicy-low-small-testnet'
105120
}
106121
};
107122

0 commit comments

Comments
 (0)