Web3.swift
Web3.swift copied to clipboard
A pure swift Ethereum Web3 library
how do i fetch chain_id of connected wallet i.e for ropsten for example. Currently i cant find any function for that in this library. Is there a workaround?
guard let transaction = contract["createToken"]?(nftUrl).createTransaction(nonce: nonce, from: myPrivateKey!.address, value: 0, gas: 1500000, gasPrice: EthereumQuantity(quantity: 200.gwei)) else { print("error") self.alert.dismiss(animated: true, completion: nil) self.showAlert(title: "Error", message: "An error has occurred.") return...
i have made an demo app using walletconnectswift library for connecting to rainbow wallet and i want to write contract functions given in this link below: [https://ropsten.etherscan.io/address/0x1c5509db908b34d81566f48780caa22e918c228a#writeContract](url) i have tried...
- The `AnnotatedERC721` protocol's definition mistyped the tokenURI function, missing a `tokenURI` parameter. - The `baseURI` is missing in the protocol This PR fixed both.
Running the code snippet from the README for sending an ETH tx fails: ```swift let privateKey = try! EthereumPrivateKey(hexPrivateKey: "0xa26da69ed1df3ba4bb2a231d506b711eace012f1bd2571dfbfff9650b03375af") firstly { web3.eth.getTransactionCount(address: privateKey.address, block: .latest) }.then { nonce in...
Hi, are you aware of any Web3Provider implementation that uses WalletConnect as a Web3Provider, similar to what already exists in JS? https://www.npmjs.com/package/@walletconnect/web3-provider Many thanks!
Hello I always get this error when signing the transaction "insufficient funds for gas * price + value" I understand that the problem is not with gas, but in the...