Use these examples when you want runnable samples behind the inline exchange-integration snippets. They are intentionally offline-first: tests do not require funded accounts or live RPC calls.

Repository layout

PathLanguageCovers
examples/exchange-integration/javascriptJavaScriptKey generation, 0x and c8 address conversion, address validation, native and ERC-20 transaction signing, raw transaction decoding.
examples/exchange-integration/javaJavaKey generation, 0x and c8 address conversion, address validation, native and ERC-20 transaction signing, raw transaction decoding.

Address generation and validation

The tested samples back the snippets in Address Generation and Validation.
npm --prefix examples/exchange-integration/javascript run test:address
mvn -f examples/exchange-integration/java/pom.xml -Dtest=C8ntinuumAddressesTest test

Offline signing and decoding

The tested samples back the snippets in Offline Signing and Broadcasting. They assert decoded transaction fields before any broadcast step: chain ID, sender, nonce, recipient, value, gas fields, data selector, and raw transaction hash.
npm --prefix examples/exchange-integration/javascript run test:offline-signing
mvn -f examples/exchange-integration/java/pom.xml -Dtest=OfflineSigningTest test
Never use the demonstration private keys or generated addresses in production systems.