Transactions
public struct Transactions: APIService
Transactions - https://docs.lisk.io/docs/lisk-api-080-transactions
-
Undocumented
See moreDeclaration
Swift
public struct BroadcastResponse: APIResponse
-
Broadcasts a locally signed transaction to the network
Declaration
Swift
public func broadcast(signedTransaction: LocalTransaction, completionHandler: @escaping (Response<BroadcastResponse>) -> Void)
-
Transfer LSK to a Lisk address using Local Signing
Declaration
Swift
public func transfer(lsk: Double, to recipient: String, secret: String, secondSecret: String? = nil, completionHandler: @escaping (Response<BroadcastResponse>) -> Void)
-
Get a transaction by id
Declaration
Swift
public func transaction(id: String, completionHandler: @escaping (Response<TransactionResponse>) -> Void)
-
Get an unconfirmed transaction by id
Declaration
Swift
public func unconfirmedTransaction(id: String, completionHandler: @escaping (Response<TransactionResponse>) -> Void)
-
Get a queued transaction by id
Declaration
Swift
public func queuedTransaction(id: String, completionHandler: @escaping (Response<TransactionResponse>) -> Void)
-
List transaction objects
Declaration
Swift
public func transactions(block: String? = nil, sender: String? = nil, recipient: String? = nil, limit: UInt? = nil, offset: UInt? = nil, orderBy: OrderBy? = nil, join: PropertyJoin = .or, completionHandler: @escaping (Response<TransactionsResponse>) -> Void)
Parameters
block
transactions for this block
sender
transactions from this sender
recipient
transactions to this recipient
limit
limit number of returned transactions
offset
used for paging, offset by certain number of transactions
orderBy
sort results by a column and direction
join
defaults to ‘or’, specify ‘and’ for an AND join of passed in parameters
-
List unconfirmed transactions
Declaration
Swift
public func unconfirmedTransactions(completionHandler: @escaping (Response<TransactionsResponse>) -> Void)
-
List queued transactions
Declaration
Swift
public func queuedTransactions(completionHandler: @escaping (Response<TransactionsResponse>) -> Void)
-
Undocumented
See moreDeclaration
Swift
public struct TransactionResponse: APIResponse
-
Undocumented
See moreDeclaration
Swift
public struct TransactionsResponse: APIResponse