Skip to content

Commit f8acb93

Browse files
authored
Update Usage.md
1 parent 1606def commit f8acb93

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Documentation/Usage.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ print("w3s token balance = " + String(bal))
297297

298298
## Transactions Operations
299299

300-
301300
### Prepare Transaction
302301

303302
#### The class created to bound provider
@@ -461,20 +460,6 @@ func contract(for address: String, web3: web3) -> web3.web3contract? {
461460
}
462461
```
463462

464-
#### Setting Transaction Options
465-
466-
```swift
467-
var options = Web3Options.defaultOptions()
468-
// public var to: EthereumAddress? = nil - to what address transaction is aimed
469-
// public var from: EthereumAddress? = nil - form what address it should be sent (either signed locally or on the node)
470-
// public var gasLimit: BigUInt? = BigUInt(90000) - default gas limit
471-
// public var gasPrice: BigUInt? = BigUInt(5000000000) - default gas price, quite small
472-
// public var value: BigUInt? = BigUInt(0) - amount of WEI sent along the transaction
473-
options.gasPrice = gasPrice
474-
options.gasLimit = gasLimit
475-
options.from = EthereumAddress("0xE6877A4d8806e9A9F12eB2e8561EA6c1db19978d")
476-
```
477-
478463
#### Preparing Transaction For Sending Ether
479464

480465
```swift
@@ -737,14 +722,6 @@ public func sendToContract(transaction: TransactionIntermediate,
737722
}
738723
```
739724

740-
### Get Transaction Gas Price
741-
742-
```swift
743-
let web3Main = Web3.InfuraMainnetWeb3()
744-
let gasPriceResult = web3Main.eth.getGasPrice()
745-
guard case .success(let gasPrice) = gasPriceResult else {return}
746-
```
747-
748725
## Chain state
749726

750727
### Get Block number

0 commit comments

Comments
 (0)