Web3.swift
Web3.swift copied to clipboard
A pure swift Ethereum Web3 library
'EthereumQuantity' only accepts BigUInt, however this becomes a problem if I want to do this: `EthereumQuantity(quantity: BigUInt(1.5).eth)` Is there a way to create an 'EthereumQuantity' using a Double?
Change the `String` in the init to `URL` and thus it removes the possible error during unwrapping (the `URL` now has to be unwrapped by the user beforehand). Also changed...
`A full-node running without archive mode will prune generated state to conserve disk space. This helps with the sync time of a node and greatly reduces storage and computation cost....
fixes #93
I'm trying to decode an empty value and getting `couldNotDecodeType` error: ```swift let encoded = try ABI.encodeParameter(type: .bytes(length: nil), value: Data("".utf8)) let decoded = try ABI.decodeParameter(type: .bytes(length: nil), from: encoded)...
I need to send etherum using this library, while I am getting this error. 
https://infura.io/docs/ethereum/json-rpc/eth-estimateGas `gasPrice` parameter was missing in the estimateGas() function signature
Mock Web3 request tests instead of relying on Infura as this is obviously bad practice.
https://infura.io/docs/ethereum/json-rpc/eth-getTransactionByHash