ethers-io / EthersWallet-ios

Ethereum Wallet and Dapp Browser for iOS.
https://itunes.apple.com/us/app/ethers-wallet/id1186052971?mt=8
MIT License
303 stars 85 forks source link

More Doc/Hep: How to send and receive ETH.. And how to connect to the TestRpc #15

Open xuncai opened 7 years ago

xuncai commented 7 years ago

Hi guys, I am working on this wallet and trying to understand how it works and how the ethers works.

  1. without running the testrpc I can still import Wallet. So it seems to me it's not connected to my testrpc, is it right?
  2. How to connect to the testRpc and test it
  3. how can I use the ethers to send and receive eth? any example codes in the project or any simple example so I can follow?

My goal is to understand how the wallet and the ethers framework work with the testrpc or the testnet. Then I can do more interesting and useful features for this wallet and turn this into a more cool project. Thanks

ricmoo commented 6 years ago

You cannot connect to a TestRPC, but you can use Ropsten, Rinkeby and Kovan testnets.

To enable these networks, once you have the application installed, on your device go to https://ethers.io/app-link/#!debug and toggle the "enable testnet".

Then when you create a new account, there will be an option in the right button of the navigation bar to choose the network you wish to have the account connect to.

ozamihir1990 commented 6 years ago

I can't see the toggle button in Create new account screen to enable testnet . I want to use Ropsten testnet, How can I change from mainnet to Ropsten?

ricmoo commented 6 years ago

Have you clicked the above link? If you click it from your device it should take you to a debug screen to enable testnets.

Then on the create/import there is a button in the navigation bar on the right to select your network.

I should put together a quick video on YouTube how to set up and create testnet accounts.

ozamihir1990 commented 6 years ago

I think a video would be better who are new in Ethereum Blockchain. Because still, I can't see a button in the navigation bar in on create/import screen. and the above link is commented in appDelegate.

longxiaoshi7788 commented 6 years ago

I have visited https://ethers.io/app-link/#!debug through the Safari browser, but I didn't get any response, what should I do, can you help me? I want to change the network to Ropsten, thank you!

ricmoo commented 6 years ago

Do you have the Ethers Wallet app installed?

It should automatically launch into the app.

longxiaoshi7788 commented 6 years ago

I have installed the ether Wallet app, but it still tell me "This link requeires the Ethers Wallet iOS Application to be installed", can you help me? Thank you!

longxiaoshi7788 commented 6 years ago

I installed the app by Xcode

longxiaoshi7788 commented 6 years ago

I have changed the bundle id, and change groups to group.io.ethers.ethers. because if i don't change them, i wouldn't run it. Apple don't allow us to create apple id which contains like "app". I don't know whether this problem connected with the changes. Thank you!

ricmoo commented 6 years ago

Hmmm... That may be causing a problem, since the server at ethers.io exposes the app id to use, which includes the Team ID.

I will update this soon to use the Settings instead, which should make it easier.

In the meantime, the quickest thing to do is probably add the following to the AppDelegate.m file in the didFinishLaunchingWithOptions: method.

[NSTimer scheduledTimerWithTimeInterval:1.0f repeats:NO block:^(NSTimer *timer) {
    [_wallet showDebuggingOptions:WalletOptionsTypeDebug callback:nil];
}];

That will cause the dialog box to show up 1s after launching. Once you have enabled the testnets and custom dapp entry, you can comment those lines out.

Does that make sense?

longxiaoshi7788 commented 6 years ago

Thanks for your answer. I have added it to the AppDelegate.m file in the didFinishLaunchingWithOptions: method, but it's not working. I want to know that when you can update this, it's very important for my work. Thank you!

longxiaoshi7788 commented 6 years ago
piiq commented 6 years ago

Hi, I have installed the app from App Store and clicked the https://ethers.io/app-link/#!debug link from all the browsers, including the one in the app. I get the "This link requeires the Ethers Wallet iOS Application to be installed" message. Any progress on connecting to testnet? I want to connect to Ropsten. Thank you

yuetloo commented 6 years ago

@piiq, from your iPhone, try clicking the link from the email app or notes app instead of entering the URL directly in a web browser.

Make sure you have the latest Ethers Wallet app with the debug link support installed on your iPhone.

piiq commented 6 years ago

@yuetloo thanks, the notes app worked. I got to a screen where I can enable testnets. After, when I started creating a new account - I saw a "Mainnet" link in upper-right corner with network selection. Thanks for your help

yuetloo commented 6 years ago

@piiq, once you have testnet enabled, you can create accounts on testnet by:

  1. click on the cloud icon on the top left corner
  2. When the side menu displays, click on the "accounts" icon (looks like 3 persons) on the top left corner
  3. On the "Accounts" screen, click on the "Edit" button and then the "+" button to add a new account
  4. On the "Create New Account" screen, you will see "Mainnet" on the top right corner, click on it to change to "Ropsten".
  5. Follow instruction to create/import account
  6. Once the ropsten account is created, you will notice the word "ROPSTEN" displayed on the top right corner on the account transaction screen. Mainnet accounts do not have any indicator on the top right corner.

I'll post a video on how to do this later.

yuetloo commented 6 years ago

Here's a video to show how to enable testnet option in ethers wallet, create a ropsten account, and receive test ether from the ropsten faucet.

https://www.youtube.com/watch?v=_sDurAbSatA&t=17s

winkeung commented 5 years ago

Hi, any body know how to delete an account? I have tried uninstall and reinstall the app, but the account is still there. Thanks in advance.

yuetloo commented 5 years ago

@winkeung, from the "Accounts" screen, you can left swipe an account record to display the "manage" button. Click the "manage" button to display the screen with the options to "View Backup Phrase" and "Delete Account".