TKRepresentable

@protocol TKRepresentable

Represents the part of a token member that can be accessed through an access token.

The class provides async API

  • Looks up funding bank accounts linked to Token.

    Declaration

    Objective-C

    - (void)getAccounts:(OnSuccessWithTKAccounts)onSuccess onError:(OnError)onError;

    Parameters

    onSuccess

    callback invoked on success

    onError

    callback invoked on error

  • Looks up a funding bank account linked to Token.

    Declaration

    Objective-C

    - (void)getAccount:(NSString *)accountId
             onSuccess:(OnSuccessWithTKAccount)onSuccess
               onError:(OnError)onError;

    Parameters

    accountId

    account id

    onSuccess

    callback invoked on success

    onError

    callback invoked on error

  • Looks up account balance with a specific key level.

    Declaration

    Objective-C

    - (void)getBalance:(NSString *)accountId
               withKey:(id)keyLevel
             onSuccess:(OnSuccessWithTKBalance)onSuccess
               onError:(OnError)onError;

    Parameters

    accountId

    account id

    keyLevel

    specifies the key to use

    onSuccess

    callback invoked on success

    onError

    callback invoked on error

  • Looks up account balances with a specific key level.

    Declaration

    Objective-C

    - (void)getBalances:(NSArray<NSString *> *)accountIds
                withKey:(id)keyLevel
              onSuccess:(OnSuccessWithTKBalances)onSuccess
                onError:(OnError)onError;

    Parameters

    accountIds

    account ids to get balance

    keyLevel

    specifies the key to use

    onSuccess

    invoked on success with account balances

    onError

    callback invoked on error

  • Looks up an address by id.

    Declaration

    Objective-C

    - (void)getAddressWithId:(NSString *)addressId
                   onSuccess:(OnSuccessWithAddress)onSuccess
                     onError:(OnError)onError;

    Parameters

    addressId

    the address id

    onSuccess

    callback invoked on success

    onError

    callback invoked on error

  • Looks up member addresses.

    Declaration

    Objective-C

    - (void)getAddresses:(OnSuccessWithAddresses)onSuccess onError:(OnError)onError;

    Parameters

    onSuccess

    callback invoked on success

    onError

    callback invoked on error

  • Looks up an existing transaction. Doesn’t have to be a transaction for a token transfer.

    Declaration

    Objective-C

    - (void)getTransaction:(NSString *)transactionId
                forAccount:(NSString *)accountId
                   withKey:(id)keyLevel
                 onSuccess:(OnSuccessWithTransaction)onSuccess
                   onError:(OnError)onError;

    Parameters

    transactionId

    ID of the transaction

    accountId

    account id

    keyLevel

    specifies the key to use

    onSuccess

    invoked on success

    onError

    invoked on error

  • Looks up existing transactions. This is a full list of transactions with token transfers being a subset.

    Declaration

    Objective-C

    - (void)getTransactionsOffset:(NSString *)offset
                            limit:(int)limit
                       forAccount:(NSString *)accountId
                          withKey:(id)keyLevel
                        onSuccess:(OnSuccessWithTransactions)onSuccess
                          onError:(OnError)onError;

    Parameters

    offset

    offset to start at (NULL for none)

    limit

    max number of records to return

    accountId

    account id

    keyLevel

    specifies the key to use

    onSuccess

    invoked on success

    onError

    invoked on error