TokenOwnershipApi

TokenOwnershipApi

new TokenOwnershipApi()

Version:
  • 1.0

TokenOwnership service.

Methods

getListOfNftOwnershipChanges(xChainId, nftAddress, tokenId, opts, callback)

getListOfNftOwnershipChanges Search for the ownership change history of a specific NFT.

## Size

* The size query parameter is optional (minimum = 1, maximum = 1000, default = 100).
* Submitting negative values result in errors.
* Submitting zero results in a query with size=100, which is the default value.
* Submitting values greater than 1000 result in queries with size=1000, which is the maximum value.

Parameters:
Name Type Description
xChainId String

Klaytn network chain ID (1001 or 8217)

nftAddress String

NFT contract address

tokenId String

NFT ID (HEX)

opts Object

Optional parameters

Properties
Name Type Description
size Number

Maximum number of items to return (min=1, max=1000, default=100)

cursor String

Response offset

callback TokenOwnershipApi~getListOfNftOwnershipChangesCallback

The callback function, accepting three arguments: error, data, response data is of type: PageableNftOwnershipChanges

Type Definitions

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.

TokenOwnershipApi

new TokenOwnershipApi(apiClientopt)

Constructs a new TokenOwnershipApi.

Parameters:
Name Type Attributes Description
apiClient ApiClient <optional>

Optional API client implementation to use, default to ApiClient#instance if unspecified.

Methods

getListOfNftOwnershipChanges(xChainId, nftAddress, tokenId, opts, callback)

getListOfNftOwnershipChanges Search for the ownership change history of a specific NFT.

## Size

* The size query parameter is optional (minimum = 1, maximum = 1000, default = 100).
* Submitting negative values result in errors.
* Submitting zero results in a query with size=100, which is the default value.
* Submitting values greater than 1000 result in queries with size=1000, which is the maximum value.

Parameters:
Name Type Description
xChainId String

Klaytn network chain ID (1001 or 8217)

nftAddress String

NFT contract address

tokenId String

NFT ID (HEX)

opts Object

Optional parameters

Properties
Name Type Description
size Number

Maximum number of items to return (min=1, max=1000, default=100)

cursor String

Response offset

callback TokenOwnershipApi~getListOfNftOwnershipChangesCallback

The callback function, accepting three arguments: error, data, response data is of type: PageableNftOwnershipChanges

Type Definitions

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.