HistoryApi
public protocol HistoryApi : BaseApi
Undocumented
-
get(byAccountId:operationId:)
Default implementationGet balance operation change by account id and operation id.
Default Implementation
Declaration
Swift
func get(byAccountId id: AccountObjectIdConvertible, operationId: ObjectIdConvertible) -> Single<BalanceChange>
Parameters
id
Account id, as
AccountObjectId
orString
format.operationId
Operation id, as
OperationHistoryObjectId
orString
format.Return Value
-
getAll(byAccountId:pagination:)
Default implementationGet account history of operations.
Default Implementation
Declaration
Swift
func getAll(byAccountId id: AccountObjectIdConvertible, pagination: Pagination) -> Single<[OperationHistory]>
Parameters
id
Account id, as
AccountObjectId
orString
format.pagination
Pagination
object.Return Value
Array
[OperationHistory]
of operations, performed by account, ordered from most recent to oldest. -
getAllRelative(byAccountId:pagination:)
Default implementationGet account history of operations.
Default Implementation
Declaration
Swift
func getAllRelative(byAccountId id: AccountObjectIdConvertible, pagination: Pagination) -> Single<[OperationHistory]>
Parameters
id
Account id, as
AccountObjectId
orString
format.pagination
Pagination
object.Return Value
Array
[OperationHistory]
of operations, performed by account, ordered from most recent to oldest. -
findAll(byAccountId:assets:recipientId:pagination:)
Default implementationReturns the most recent balance operations on the named account. This returns a list of operation history objects, which describe activity on the account.
Default Implementation
Declaration
Swift
func findAll(byAccountId id: AccountObjectIdConvertible, assets: [AssetObjectIdConvertible], recipientId: AccountObjectIdConvertible?, pagination: Pagination) -> Single<[BalanceChange]>
Parameters
id
Account id, as
AccountObjectId
orString
format.assets
Assets ids, default
[]
for all assets.recipientId
Partner account object id, to filter transfers to specific account, default
nil
, asAccountObjectId
orString
format.pagination
Pagination
object.Return Value
Array
[BalanceChange]
of balance changes.