# tea\_sdk\_utils

The tea sdk utills wraps a bunch of utilities that the developer will need to use to interact with the TEA system. The source code is at <https://github.com/tearust/sdk/blob/master/utils/wasm-actor-utils/src/client/types.rs>

Here's the list of functions:

* login: Used for user login
* query\_session\_key: to use the logged in user's session\_key. This session\_key is needed almost every time in order to contact the backend as the proof of user login.
* query\_result: To get the response from previous requests. This is because all requests to the backend will be handled async.
* queryHashResult: TODO://
* logout: logout
* query\_balance: query the account balance.
* query\_deposit: query the deposit balance.
* query\_asset:TODO://
* query\_allowance:
* query\_tapp\_metadata: Get TApp metadata.
* query\_err\_log: get error log.
* query\_system\_version: get system version.

Some of the account concepts might be unfamiliar to you, such as "balance, deposit, allowance". Please read the TEA Project tokenomics for more details.
