Skip to main content
A complete example of a server that accepts both Solana and EVM payments, with a client configured for both chains.

Server

server.ts

Client with rides

The simplest approach. Add wallets for both chains and rides selects the right one.
client-rides.ts

Client with fetch wrapper

For more control over chain selection.
client-fetch.ts

Running the example

The server accepts either chain. The rides client uses whichever wallet matches first. The fetch wrapper client explicitly prefers EVM via a custom payerChooser.