# lib.ft4.utils · FT4 Rell API · Chromia Docs (concept)

> Types page_cursor A cursor that points to where pages should start in paginated queries. paged_result The return type of all paginated queries. It contains

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/

PACKAGE

# lib.ft4.utils

On this page

* [Types](#types)
* [Functions](#functions)
* [Properties](#properties)

## Types

[page\_cursor](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/page_cursor/)
:   A cursor that points to where pages should start in paginated queries.

[paged\_result](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/paged_result/)
:   The return type of all paginated queries. It contains a list of results of the query, and a

[pagination\_result](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/pagination_result/)
:   An element of a page that should be returned by paginated queries.

[validation\_result](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/validation_result/)

## Functions

[before\_rowid](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/before_rowid/)
:   Returns the rowid of the last retrieved element, given the base64-encoded pagecursor.

[convert\_gtv\_to\_text](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/convert_gtv_to_text/)
:   Converts a gtv value to a pretty text representation, with newlines and indentations.

[decode\_cursor](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/decode_cursor/)
:   Decodes a pagecursor from a base64 string, received as a query parameter.

[derive\_nonce](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/derive_nonce/)
:   A utility function that computes a unique nonce for this operation's message to sign.

[encode\_cursor](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/encode_cursor/)
:   Encodes a pagecursor into a base64 string to make it more manageable for the frontend

[fetch\_data\_size](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/fetch_data_size/)
:   Used to calculate the page size for the current query. The value will be:

[get\_block\_height](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/get_block_height/)
:   Returns the block height regardless of whether opcontext exists.

[invalid](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/invalid/)
:   A validationresult to be returned when an error should be thrown

[is\_big\_integer](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/is_big_integer/)
:   Used to check if a gtv value is encoding a biginteger

[is\_byte\_array](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/is_byte_array/)
:   Used to check if a gtv value is encoding a bytearray

[is\_dict](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/is_dict/)
:   Used to check if a gtv value is encoding a dict

[is\_integer](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/is_integer/)
:   Used to check if a gtv value is encoding an integer

[is\_list](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/is_list/)
:   Used to check if a gtv value is encoding a list

[is\_text](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/is_text/)
:   Used to check if a gtv value is encoding a text

[latest\_time](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/latest_time/)
:   Returns the last block time regardless of whether opcontext exists.

[make\_auth\_message](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/make_auth_message/)
:   A utility function that adds a header and a footer to every auth message.

[make\_page](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/make_page/)
:   Creates a page from a list of paginationresults and the expected size of the page.

[null\_page](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/null_page/)
:   Utility function that returns an empty page with no next page

[validate\_blockchain\_rid](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/validate_blockchain_rid/)
:   Checks whether the blockchain RID has the correct size

[validate\_composite\_indexes\_init\_tx\_rids\_and\_init\_op\_index](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/validate_composite_indexes_init_tx_rids_and_init_op_index/)
:   Throws INVALID FILTER if the list of inittxrids is not empty, but initopindex is not specified or

[validate\_composite\_indexes\_tx\_rids\_and\_op\_index](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/validate_composite_indexes_tx_rids_and_op_index/)
:   Throws INVALID FILTER if the list of transactionrids is not empty, but opindex is not specified or

[validate\_recipient\_id](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/validate_recipient_id/)
:   Checks if the recipient id has the correct size

## Properties

[MILLISECONDS\_PER\_DAY](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/-m-i-l-l-i-s-e-c-o-n-d-s_-p-e-r_-d-a-y/)
:   The number of milliseconds in a day, mainly used for transfer time-to-live

[RECIPIENT\_ID\_MAX\_SIZE](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/-r-e-c-i-p-i-e-n-t_-i-d_-m-a-x_-s-i-z-e/)

[VALID](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/-v-a-l-i-d/)
:   A validationresult to be returned when no error should be thrown

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.utils/index.html)Generated API reference, mirrored from the live docs
