web3swift
web3swift copied to clipboard
Elegant Web3js functionality in Swift. Native ABI parsing and smart contract interactions.
Hello. My code gets a balance of ERC721 on wallet and after trying to go through `getTokenOwnedByIndex`. 6 request simultaneously runs and wait. I connected proxy and see the balance...
https://github.com/skywinder/web3swift#send-erc-20-token When send ERC-20 Token not needed line - "options.value = amount" because method "transfer" in erc20ABI is not "payable"
When decode dynamic array with elements type - dynamicBytes, correctly decoded only two elements, all next elements replaces with second element. Dynamic array decoded in method - "decodeSingleType" - case...
Previously I was getting error mentioned in https://github.com/skywinder/web3swift/issues/254 after that when I tried to run I'm getting -> processingError(desc: "Failed to fetch nonce") let value: String = value let walletAddress...
I make the transaction from json: ``` ["object": { data = 0x7ff36ab500000000000000000000000000000000000000000000000000034039a4aab0bf0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000dcafb08f535d986c72ac254fe0bb225ccc0f77fc00000000000000000000000000000000000000000000000000000000c44d75b900000000000000000000000000000000000000000000000000000000000000030000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063000000000000000000000000831753dd7087cac61ab5644b308642cc1c33dc13; from = 0xdcafb08f535d986c72ac254fe0bb225ccc0f77fc; gas = 0x50315; to = 0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff; value = 0x16345785d8a0000; }, "name": signTransaction, "id": 1646704788011] ```...
macos Version :12.3 xcode Version : 13.3 cocospod Version:1.11.3 Installing BigInt (5.2.0) Installing CryptoSwift (1.4.3) Installing PromiseKit (6.15.3) Installing Starscream (4.0.4) Installing secp256k1.c (0.1.2) Installing web3swift (2.6.0)  Creating a...
From what I understand this library allows you to create or import a wallet via mnemonics or the private key. But is it possible to somehow authenticate with a wallet...
**The issue** Passing a result of `Data(...).dropFirst(n)` to `ABIDecoder.decode` results in ``` Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) ``` The reason is that `dropFirst/Last` does not return a new `Data` object...
macos 版本:12.3 xcode 版本:13.3 cocospod 版本:1.11.3 web3swift (2.6.0) and web3swift (2.3.0) I send erc-20 token without option.Value can succeed, but I fill in option.Value will report an error in the...
I'm new in ethereum development and I found out that there is only one way to effectively test smart contracts is using 'truffle'. Truffle requires javascript knowledge and I don't...