Is it possible (and in that case how?) to connect an iOS app, build with swift using xcode, to an Ethereum testnet? So for instance a user would be able to login and set or get a value which is saved on the Ethereum test blockchain?
2 Answers
Yes. Run a node using Geth or Parity.
Then utilise a library such as JSONRPCKit to communicate with the node using the JSON RPC API implemented by these clients.
-
-
@Frederikke - ethdocs.org/en/latest/contracts-and-transactions/… - you can simply make
GET
orPOST
requests: imgur.com/a/inmxH (some library may potentially be handier) Commented Dec 25, 2017 at 12:42
yes, it is possible to connect with Ethereum with web3swift. This lib is not official from Ethereum but This lib can connect with Ethereum blockchain. For more reference hit this link https://medium.com/@shivangpandey195/getting-started-with-web3swift-1a2454481f70 and implement web3swift lib in your XCode project.
-
Agreed with above comment. @shivang Please consider to improve your answer– AniketCommented May 18, 2018 at 6:52