Skip to content

feat: add React wagmi + Tron example with message signing - #225

Open
rtomas wants to merge 2 commits into
mainfrom
rtomas/react-wagmi-tron-sign
Open

feat: add React wagmi + Tron example with message signing#225
rtomas wants to merge 2 commits into
mainfrom
rtomas/react-wagmi-tron-sign

Conversation

@rtomas

@rtomas rtomas commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Adds a new react/react-wagmi-tron example (Vite + React) that registers the wagmi adapter (Ethereum mainnet) and the Tron adapter (Tron mainnet) in a single createAppKit call, so both namespaces can be connected at the same time. Each chain gets its own connect button via open({ view: 'Connect', namespace }) and its own sign-message button — EVM through wagmi's useSignMessage, Tron through the TronConnector from useAppKitProvider('tron') — with per-namespace addresses and both signatures rendered in InfoList.

The wagmi deps are pinned (wagmi@2.19.5, viem@2.47.0, @wagmi/connectors@6.2.0, matching react-wagmi) because otherwise pnpm resolves a second @wagmi/core for the adapter's peer range and the duplicate Config types break tsc on <WagmiProvider>. Also adds the example to the structure list in the root README.md.

Verified with pnpm install, tsc -b, vite build and eslint . all passing, plus a dev-server smoke test.

🤖 Generated with Claude Code

New `react/react-wagmi-tron` example combining the wagmi adapter (Ethereum
mainnet) and the Tron adapter (Tron mainnet) in a single AppKit instance.

Both namespaces can be connected at the same time via
`open({ view: 'Connect', namespace })`, and a message can be signed on each:
EVM through wagmi's `useSignMessage`, Tron through the `TronConnector` from
`useAppKitProvider('tron')`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
appkit-web-examples-multichain-react-evm-tron Ready Ready Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-next-multichain Error Error Sep 1, 2026 11:51am UTC
appkit-web-examples-react-multichain Ready Ready Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-tron Ready Ready Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-wagmi Building Building Preview Sep 1, 2026 11:51am UTC
react-core-universal-connector Ready Ready Preview Sep 1, 2026 11:51am UTC
18 Skipped Deployments
Project Deployment Actions Updated
appkit-web-examples-javascript-bitcoin Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-javascript-ethers Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-javascript-solana Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-javascript-wagmi Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-next-bitcoin Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-next-ethers Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-next-solana Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-next-wagmi Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-bitcoin Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-core-up Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-ethers Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-ethers5 Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-react-solana Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-vue-bitcoin Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-vue-ethers Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-vue-multichain Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-vue-solana Ignored Ignored Preview Sep 1, 2026 11:51am UTC
appkit-web-examples-vue-wagmi Ignored Ignored Preview Sep 1, 2026 11:51am UTC

Request Review

@claude

claude Bot commented Aug 31, 2026

Copy link
Copy Markdown

Claude finished @rtomas's task in 1m 18s —— View job


Review in progress

  • Gather context
  • Read key files
  • Waiting for license / breaking-changes / data-classification subagents
  • Post findings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant