Skip to content

faremeter/examples-browser

Repository files navigation

Faremeter Browser Example

#0 - Install with pnpm

pnpm install -r

#1 - Run the hono middleware

( cd apps/server && SOLANA_PAYTO_ADDRESS=91CR7uzzSPyPTKahKQkTeK4ZQneMg1TYSf9UumSEQcGD pnpm tsx src )

#2 - Run the browser app inside vite

( cd apps/browser-app && pnpm vite )

#3 - Browse with a Phantom-enabled browser to the local vite

http://localhost:5173

NOTE: This wallet must be funded on devnet with USDC. You should have your developer tools open to look for errors to the console.

#4 - Click Make Request button in the browser.

After you click the button, you should be prompted by your Phantom wallet to authorize the payment. You MUST have USDC on devnet on the wallet you choose to use.

You should then see:

status: OK (200){"msg":"success"}

... inside the central text area.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published