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

Question: How do I prepare .env ? #24

Open
jb747 opened this issue Mar 28, 2024 · 2 comments
Open

Question: How do I prepare .env ? #24

jb747 opened this issue Mar 28, 2024 · 2 comments

Comments

@jb747
Copy link

jb747 commented Mar 28, 2024

The web instructions and the readme for this repo ask for:

  1. the RPC_URL for a/the polygon Mumbai network rpc node
    There is no RPC_URL in .env.example. There is a THIRD_PARTY_RPC_URL, though.
    What is required and where does one get it? I can get a list of polygon MumbaiRPC server addresses, but I am unsure which, if any, is suitable and what setting to use. Perhaps "https://polygon-mumbai-bor-rpc.publicnode.com"?

  2. WALLET_KEY
    I have tried both the iOS app and browser extension demo. The closest I get to a key is an "Polygon Account"/"My Identity" identifier of the form "did:polygonid:polygon:mumbai:" followed by 42 alphanumeric characters. The comment in the .env.example file indicates that it wants "key in hex format with matic balance". I assume that the test performs actions which, even on a testnet, consume Matic? If so, I'm not sure how to add Matic to either wallet. I'm also unsure how I can find/generate the requested hex key. Perhaps I should be using another wallet?

Probably FAQs.. at this point I'm new to this :).

@jb747
Copy link
Author

jb747 commented Mar 28, 2024

This 3rd party tutorial shows how to connect a Metamask wallet to a polygon Mumbai testnet (they use https://rpc-mumbai.maticvigil.com/) and add Matic from a faucet. Another 3rd party tutorial shows how to get a public address for the wallet. I don't know whether this wallet is suitable to test your sdk, though.

@jb747
Copy link
Author

jb747 commented Mar 29, 2024

I have gone through the Quick Start Demo successfully. The iOS Polygon ID wallet app worked well. There is a Recipient DID, but there was no mention of a hex wallet key or a Matic balance.

A Polygon ID wallet cannot hold Matic so perhaps the .env.example settings refer to a second wallet, like Metamask, capable of holding funds. Seems worth a try...

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

No branches or pull requests

1 participant