MCPcopy Index your code
hub / github.com/codeaashu/claude-code / generateX402PrivateKey

Function generateX402PrivateKey

src/services/x402/config.ts:162–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 * Returns the hex-encoded key (with 0x prefix).
161 */
162export function generateX402PrivateKey(): string {
163 return '0x' + randomBytes(32).toString('hex')
164}
165
166/** Updates the payment network */
167export function setX402Network(network: PaymentNetwork): void {

Callers 1

handleSetupFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected