Skip to main content

GasStation

open class GasStation : Disposable, AutoCloseable, GasStationInterface

The IOTA gas station, sponsoring transactions over its HTTP API.

Build one and pass it to a transaction builder's execute_with_gas_station.

Constructors​

GasStationconstructor(url: String, reservationDuration: Duration? = null, headers: Map<String, List<String>>? = null, httpOptions: HttpClientOptions? = null)
Create a gas station reachable at url.

Functions​

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
toStringopen override fun toString(): String
urlopen override fun url(): String
The URL this station is reached at.