Questions tagged [web3swift]

Web3 functionality in Swift

Links:

  1. web3swift official repo
  2. MercuryProtocol web3.swift
  3. Boilertalk Web3.swift
15 questions
6
votes
1 answer

Sign any message with the user’s private key and verify the signature on Ethereum

I'm trying to explore Ethereum and creating a app which let user sign message and validate the message. I'm using web3swift framework for this and what I have tried so far is as follows - let web3Rinkeby = Web3.InfuraRinkebyWeb3() let msgStr…
Suryakant Sharma
  • 3,852
  • 1
  • 25
  • 47
3
votes
1 answer

How to interact with Smart Contract deployed on Blockchain from Swift app

It is my first time working with smart contracts and my goal is to create a mobile app which can interact with it by calling methods to save or retrieve data. For this reason I have created a very simple contract using Remix and I have also deployed…
Dakata
  • 1,227
  • 2
  • 14
  • 33
3
votes
1 answer

Interacting with custom smart contract using web3swift

I am using the web3swift library and I managed to do some transactions, mostly gets (balanceOf, owner etc). I read the whole readme(documentation), but I am not quite sure, can we use this library to call functions from our custom smart contracts?…
maptuhec
  • 102
  • 8
3
votes
1 answer

Compile error when trying to import web3swift

I am trying to import web3swift into one of my Swift files, but get the compiler error No such module 'web3swift'". The import statements look like this: import Geth import web3swift In my pod file, I have: pod 'web3swift', :git =>…
2
votes
1 answer

How to use custom json contract with web3swift

How can I use a JSON contract local, for example something like this: let jsonString =…
Tcacenco Daniel
  • 445
  • 7
  • 17
1
vote
0 answers

Smart Contract Event Parsing With Web3swift and interacting with it swift

I am using the web3swift library and I managed to read methods of the smart contract. But Not able to parse non-indexed events of the smart contract. can anyone give an example to parse non-indexed events of the smart contract?
1
vote
1 answer

Export mnemonics function in web3swift library

I have a problem interacting with web3swift. I need to show mnemonics to my users when they want it. Is there a way to do it? I did a little research and found out that in trust wallet this could be done just with code: String(data: decryptedPK,…
1
vote
1 answer

Can't import Web3. swift in Xcode project

Hey I was able to instal the web3swift pod using pod install but afterwards I can't import it in the project, so I can't start using it. Any tips? Here is the Podfile code # Uncomment the next line to define a global platform for your project #…
maptuhec
  • 102
  • 8
1
vote
1 answer

How to create raw transaction using web3swift?

I'm working on a project related to blockchain and need to figure out how raw transaction can be possible. I got no reference for this as of now. I have tried matterinc/web3swift but unable to get exact thing.
Abhishek Thapliyal
  • 3,497
  • 6
  • 30
  • 69
0
votes
0 answers

section __text/__text address out of range file for architecture x86_64 while integrating web3swift MercuryProtocol

I've been stuck here for 2 days tried all methods but still failed to build successfully not able to fix section __text/__text address out of range file for architecture x86_64 while integrating web3swift MercuryProtocol.
Shikha Sharma
  • 139
  • 1
  • 14
0
votes
0 answers

How to conduct an ETH transfer from web3swift?

How do I send GoerliETH from one wallet to considering I have my Wallet Address, Private Key, Infura Goerli API Key and the recipient Wallet Address. I have tried to get balanceOf for the wallet so far, and that works with the following code I found…
0
votes
1 answer

How to get ETH transaction status from web3swift?

I did The ETH transaction with help of web3swift and Infura endpoint. I can't able to get the status of that transaction. I have generated a transaction hash by using the following code. guard let fromAddress = walletAddress, let…
0
votes
0 answers

Web3 Swift Call Contract using Skywinder wrapper

I am trying to call a contract via web3 using sky winder wrapper. What I am trying to do is call a contract where I pass x amount of token coins and pass contract address and token address. However it's failing. the Abi contract comes from web…
0
votes
1 answer

Web3Swift Interaction with custom ABI

I am trying to interact with a smart contract I set up. Basically the goal is to set from an iOS App 5 Parameters projectTitle projectLocation projectStart projectEnd teamType I want the user to set those parameters and write it on the ropsten…
Schaedel420
  • 175
  • 11
0
votes
1 answer

How to sign personal message with the personal extension of web3?

I'm making a Dapp with web3swift by matter inc. One method I come across is one of the web3.Personal extension: public func signPersonalMessage(message: Data, from: web3swift.EthereumAddress, password: String = default) -> …