Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vanilla js examples #35

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

feat: vanilla js examples #35

wants to merge 16 commits into from

Conversation

rtomas
Copy link
Collaborator

@rtomas rtomas commented Jan 20, 2025

  • always getActiveChain() = solana (mainnet)
    - this is causing the Balance no to load.
    - For getting the Connection Object (not to straightforward) and also the activeChain
const arrayChain = store['solanaProvider'].requestedChains
const selectedChain = arrayChain.find(chain => chain.id === state.chainId);
const url = selectedChain.rpcUrls.default.http[0];
const connection = new Connection(url);
  • wagmi vanillaJS can't send tx because bringing the wrong config and also not working well.
  • bitcoin activity and balance is giving error

Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appkit-web-examples-next-bitcoin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-next-ethers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-next-multichain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-next-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-next-wagmi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-react-bitcoin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-react-ethers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-react-multichain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-react-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-react-wagmi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-vue-bitcoin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-vue-ethers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-vue-multichain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-vue-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm
appkit-web-examples-vue-wagmi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 1:14pm

@rtomas rtomas changed the title feat: vanilla js examples (WIP) feat: vanilla js examples Jan 23, 2025
@rtomas rtomas requested a review from magiziz January 23, 2025 13:08
@rtomas rtomas marked this pull request as ready for review January 23, 2025 13:08
import { createAppKit } from '@reown/appkit'
import { BitcoinAdapter } from '@reown/appkit-adapter-bitcoin'

const projectId = import.meta.env.VITE_PROJECT_ID
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do this ?

const projectId = import.meta.env.VITE_PROJECT_ID || "b56e18d47c72ab683b10814fe9495694"

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.

2 participants