balance_of
An entrypoint that retrieves a user's LP tokens amount and sends it to the callback contract. Works exactly like FA2 balance_of entrypoint according to TZIP-012.
Call parameters
bal_request_t
Field | Type | Description |
---|---|---|
owner | address | Owner of tokens |
toeken_id | token_id_t | Token ID |
bal_response_t
Field | Type | Description |
---|---|---|
requests | Balance of request | |
balance | nat | Balance of token |
balance_of_t
Field | Type | Description |
---|---|---|
requests | list(bal_response_t) | Balance of requests |
callback | contract(list(bal_response_t)) | Callback contract |
Usage
Errors
412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).FA2_TOKEN_UNDEFINED
- token withtoken_id
doesn't exist.
Last updated