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
blocktransactions for this block
sendertransactions from this sender
recipienttransactions to this recipient
limitlimit number of returned transactions
offsetused for paging, offset by certain number of transactions
orderBysort results by a column and direction
joindefaults 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
View on GitHub
Transactions Structure Reference