Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ The library works with any EVM-compatible network. The example agents use:
- USDC: `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`
- Explorer: https://basescan.org/

### Taiko Mainnet (production)
- Chain ID: `167000`
- RPC: `https://rpc.mainnet.taiko.xyz`
- USDC: `0x07d83526730c7438048d55a4fc0b850e2aab6f0b`
- Explorer: https://taikoscan.io

## Security

### Best practices
Expand Down
1 change: 1 addition & 0 deletions x402_a2a/core/merchant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function processPriceToAtomicAmount(
"base-sepolia": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
ethereum: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
polygon: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
taiko: "0x07d83526730c7438048d55a4fc0b850e2aab6f0b",
};

if (typeof price === "string") {
Expand Down
1 change: 1 addition & 0 deletions x402_a2a/core/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function getChainId(network: string): number {
"base-sepolia": 84532,
"ethereum": 1,
"polygon": 137,
"taiko": 167000,
};
return chainIds[network] || 84532;
}
2 changes: 1 addition & 1 deletion x402_a2a/types/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class x402Metadata {
static readonly ERROR_KEY = "x402.payment.error";
}

export type SupportedNetworks = "base" | "base-sepolia" | "ethereum" | "polygon";
export type SupportedNetworks = "base" | "base-sepolia" | "ethereum" | "polygon" | "taiko";

// Core x402 Protocol Types (equivalent to x402.types in Python)
export interface EIP712Domain {
Expand Down