new TokenOwnershipApi()
- Version:
- 1.0
TokenOwnership service.
Methods
getListOfContractByOwnerAddress(opts, callback)
Get contract data by EOA Selecting an EOA will fetch data of all contracts of tokens by EOA.<p></p> * `ft`: `ft` balances existing in the contract will be included in the response<br> * `nft`: Tokens existing in the contract will be included in the response<br> * `mt`: Token balances existing in the contract will be included in the response<p></p><br> ## Size<p></p> * The query parameter `size` is optional. (Min = 1, Max = 1000, Default = 100)<br> * Returns an error when given a negative number<br> * Uses default (`size=100`) when given a 0<br> * Uses the maximum value (`size=1000`) when given a value higher than 1000<br>
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
TokenOwnershipApi~getListOfContractByOwnerAddressCallback | The callback function, accepting three arguments: error, data, response data is of type: PageableContractSummary |
getListOfNftOwnershipChanges(opts, callback)
Query ownership change history for certain NFTs Get ownership change history of certain NFTs.<p></p> ## Size<p></p> * The query parameter `size` is optional. (Min = 1, Max = 1000, Default = 100)<br> * Returns an error when given a negative number<br> * Uses default (`size=100`) when given a 0<br> * Uses the maximum value (`size=1000`) when given a value higher than 1000<br>
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
TokenOwnershipApi~getListOfNftOwnershipChangesCallback | The callback function, accepting three arguments: error, data, response data is of type: PageableNftOwnershipChanges |
getListOfTokenByOwnerAddress(opts, callback)
Get data of certain tokens for certain EOAs Selecting an EOA will get all token data by EOA.<p></p> * `ft`: `ft` balances existing in the contract will be included in the response<br> * `nft`: Tokens existing in the contract will be included in the response<br> * `mt`: Token balances existing in the contract will be included in the response<p></p><br> ## Size<p></p> * The query parameter `size` is optional. (Min = 1, Max = 1000, Default = 100)<br> * Returns an error when given a negative number<br> * Uses default (`size=100`) when given a 0<br> * Uses the maximum value (`size=1000`) when given a value higher than 1000<br>
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
TokenOwnershipApi~getListOfTokenByOwnerAddressCallback | The callback function, accepting three arguments: error, data, response data is of type: PageableTokenSummary |
Type Definitions
getListOfContractByOwnerAddressCallback(error, data, response)
Callback function to receive the result of the getListOfContractByOwnerAddress operation.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
PageableContractSummary | The data returned by the service call. |
response |
String | The complete HTTP response. |
getListOfNftOwnershipChangesCallback(error, data, response)
Callback function to receive the result of the getListOfNftOwnershipChanges operation.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
PageableNftOwnershipChanges | The data returned by the service call. |
response |
String | The complete HTTP response. |
getListOfTokenByOwnerAddressCallback(error, data, response)
Callback function to receive the result of the getListOfTokenByOwnerAddress operation.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
PageableTokenSummary | The data returned by the service call. |
response |
String | The complete HTTP response. |