ECHO
final public class ECHO : InterfaceFacades, Startable
Undocumented
-
Undocumented
Declaration
Swift
public init(settings: Settings)
-
Starts socket connection, connects to blockchain apis
Declaration
Swift
public func start(completion: @escaping Completion<Bool>)
-
Declaration
Swift
public func setSubscribeCallback(completion: @escaping Completion<Bool>)
-
Declaration
Swift
public func subscribeToAccount(nameOrId: String, delegate: SubscribeAccountDelegate)
-
Declaration
Swift
public func unsubscribeToAccount(nameOrId: String, delegate: SubscribeAccountDelegate)
-
Declaration
Swift
public func subscribeToDynamicGlobalProperties(delegate: SubscribeDynamicGlobalPropertiesDelegate)
-
Declaration
Swift
public func unsubscribeToDynamicGlobalProperties()
-
Declaration
Swift
public func subscribeToBlock(delegate: SubscribeBlockDelegate)
-
Declaration
Swift
public func unsubscribeToBlock()
-
Declaration
Swift
public func subscribeContracts(contractsIds: [String], delegate: SubscribeContractsDelegate)
-
Declaration
Swift
public func unsubscribeToContracts(contractIds: [String], delegate: SubscribeContractsDelegate)
-
Declaration
Swift
public func subscribeToContractLogs(contractId: String, delegate: SubscribeContractLogsDelegate)
-
Declaration
Swift
public func unsubscribeToContractLogs(contractId: String, delegate: SubscribeContractLogsDelegate)
-
Declaration
Swift
public func unsubscribeAll()
-
Declaration
Swift
public func isOwnedBy(name: String, password: String, completion: @escaping Completion<UserAccount>)
-
Declaration
Swift
public func isOwnedBy(wif: String, completion: @escaping Completion<[UserAccount]>)
-
Declaration
Swift
public func changePassword(old: String, new: String, name: String, completion: @escaping Completion<Bool>)
-
Declaration
Swift
public func getBlock(blockNumber: Int, completion: @escaping Completion<Block>)
-
Declaration
Swift
public func registerAccount(name: String, password: String, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
Declaration
Swift
public func getAccount(nameOrID: String, completion: @escaping Completion<Account>)
-
Declaration
Swift
public func isAccountReserved(nameOrID: String, completion: @escaping Completion<Bool>)
-
Declaration
Swift
public func getBalance(nameOrID: String, asset: String?, completion: @escaping Completion<[AccountBalance]>)
-
Declaration
Swift
public func getAccountHistroy(nameOrID: String, startId: String, stopId: String, limit: Int, completion: @escaping Completion<[HistoryItem]>)
-
Declaration
Swift
public func getGlobalProperties(completion: @escaping Completion<GlobalProperties>)
-
Declaration
Swift
public func getFeeForTransferOperation(fromNameOrId: String, toNameOrId: String, amount: UInt, asset: String, assetForFee: String?, completion: @escaping Completion<AssetAmount>)
-
getFeeForCallContractOperation(registrarNameOrId:assetId:amount:assetForFee:contratId:methodName:methodParams:completion:)
Declaration
Swift
public func getFeeForCallContractOperation(registrarNameOrId: String, assetId: String, amount: UInt?, assetForFee: String?, contratId: String, methodName: String, methodParams: [AbiTypeValueInputModel], completion: @escaping Completion<CallContractFee>)
-
getFeeForCallContractOperation(registrarNameOrId:assetId:amount:assetForFee:contratId:byteCode:completion:)
Declaration
Swift
public func getFeeForCallContractOperation(registrarNameOrId: String, assetId: String, amount: UInt?, assetForFee: String?, contratId: String, byteCode: String, completion: @escaping Completion<CallContractFee>)
-
sendTransferOperation(fromNameOrId:passwordOrWif:toNameOrId:amount:asset:assetForFee:completion:noticeHandler:)
Declaration
Swift
public func sendTransferOperation(fromNameOrId: String, passwordOrWif: PassOrWif, toNameOrId: String, amount: UInt, asset: String, assetForFee: String?, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
Declaration
Swift
public func createAsset(nameOrId: String, passwordOrWif: PassOrWif, asset: Asset, completion: @escaping Completion<Bool>)
-
Declaration
Swift
public func issueAsset(issuerNameOrId: String, passwordOrWif: PassOrWif, asset: String, amount: UInt, destinationIdOrName: String, completion: @escaping Completion<Bool>)
-
Declaration
Swift
public func listAssets(lowerBound: String, limit: Int, completion: @escaping Completion<[Asset]>)
-
Declaration
Swift
public func getAsset(assetIds: [String], completion: @escaping Completion<[Asset]>)
-
Declaration
Swift
public func getContractResult(contractResultId: String, completion: @escaping Completion<ContractResultEnum>)
-
Declaration
Swift
public func getContractLogs(contractId: String, fromBlock: Int, toBlock: Int, completion: @escaping Completion<[ContractLog]>)
-
Declaration
Swift
public func getContracts(contractIds: [String], completion: @escaping Completion<[ContractInfo]>)
-
Declaration
Swift
public func getContract(contractId: String, completion: @escaping Completion<ContractStructEnum>)
-
createContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:byteCode:supportedAssetId:ethAccuracy:parameters:completion:noticeHandler:)
Declaration
Swift
public func createContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, byteCode: String, supportedAssetId: String?, ethAccuracy: Bool, parameters: [AbiTypeValueInputModel]?, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
createContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:byteCode:supportedAssetId:ethAccuracy:completion:noticeHandler:)
Declaration
Swift
public func createContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, byteCode: String, supportedAssetId: String?, ethAccuracy: Bool, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
callContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:contratId:methodName:methodParams:completion:noticeHandler:)
Declaration
Swift
public func callContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, contratId: String, methodName: String, methodParams: [AbiTypeValueInputModel], completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
callContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:contratId:byteCode:completion:noticeHandler:)
Declaration
Swift
public func callContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, contratId: String, byteCode: String, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
Declaration
Swift
public func queryContract(registrarNameOrId: String, assetId: String, contratId: String, methodName: String, methodParams: [AbiTypeValueInputModel], completion: @escaping Completion<String>)
-
Declaration
Swift
public func queryContract(registrarNameOrId: String, assetId: String, contratId: String, byteCode: String, completion: @escaping Completion<String>)
-
Declaration
Swift
public func generateEthAddress(nameOrId: String, passwordOrWif: PassOrWif, assetForFee: String?, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
Declaration
Swift
public func getEthAddress(nameOrId: String, completion: @escaping Completion<EthAddress?>)
-
Declaration
Swift
public func withdrawalEth(nameOrId: String, passwordOrWif: PassOrWif, toEthAddress: String, amount: UInt, assetForFee: String?, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
Declaration
Swift
public func getAccountDeposits(nameOrId: String, completion: @escaping Completion<[DepositEth]>)
-
Declaration
Swift
public func getAccountWithdrawals(nameOrId: String, completion: @escaping Completion<[WithdrawalEth]>)
-
Declaration
Swift
public func sendCustomOperation(operation: CustomSocketOperation, for specificAPI: API)