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
idAccount id, as
AccountObjectIdorStringformat.operationIdOperation id, as
OperationHistoryObjectIdorStringformat.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
idAccount id, as
AccountObjectIdorStringformat.paginationPaginationobject.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
idAccount id, as
AccountObjectIdorStringformat.paginationPaginationobject.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
idAccount id, as
AccountObjectIdorStringformat.assetsAssets ids, default
[]for all assets.recipientIdPartner account object id, to filter transfers to specific account, default
nil, asAccountObjectIdorStringformat.paginationPaginationobject.Return Value
Array
[BalanceChange]of balance changes.
View on GitHub
Install in Dash
HistoryApi Protocol Reference