GeneralApi
public protocol GeneralApi : BaseApi
Undocumented
-
getInfo()
Default implementationGet info.
Default Implementation
Declaration
Swift
func getInfo() -> Single<String>
Return Value
Info.
-
getChainProperties()
Default implementationGet properties associated with the chain.
Default Implementation
Declaration
Swift
func getChainProperties() -> Single<ChainProperties>
Return Value
ChainProperties
with chain id and immutable chain parameters. -
getGlobalProperties()
Default implementationGet global properties. This object contains all of the properties, of the blockchain that are fixed, or that change only once per maintenance interval, such as the current list of miners, block interval, etc.
Default Implementation
Declaration
Swift
func getGlobalProperties() -> Single<GlobalProperties>
Return Value
-
getConfiguration()
Default implementation -
getChainId()
Default implementationGet the chain id.
Default Implementation
Declaration
Swift
func getChainId() -> Single<String>
Return Value
Chain id identifying blockchain network.
-
getDynamicGlobalProperties()
Default implementationRetrieve the dynamic properties. The returned object contains information, that changes every block interval, such as the head block number, the next miner, etc.
Default Implementation
Declaration
Swift
func getDynamicGlobalProperties() -> Single<DynamicGlobalProps>
Return Value
-
getTime(toMaintenance:)
Default implementationGet remaining time to next maintenance interval from given time.
Default Implementation
Declaration
Swift
func getTime(toMaintenance time: Date) -> Single<MinerRewardInput>
Parameters
time
Reference time.
Return Value
Remaining time to next maintenance interval, along with some additional data