Basics - Item fetching
Using the item fetching feature, you can check digital items in the user’s DOSI account.
Connection info
Development environment | DOSI SDK base URI |
---|---|
Production | https://sdk-api.dosi.world |
Get digital item list
Get the list of digital items with the given contract ID. You can still get digital items that aren't in the user’s DOSI account if you have the contract ID.
As GET {DOSI SDK base URI}/v1/wallets/{walletAddress}/contracts/{contractId}/items supported in versions prior to v1.0.0 will be deprecated, use this endpoint instead.
Path
Name | Type | Description |
---|---|---|
walletAddress | string | Address of the user's wallet |
contractId | string | Contract ID of the digital items. Enter the contract ID received after applying for DOSI SDK or any contract ID existing on Finschia. |
itemType | string | Digital item type for retrieval. Provide an 8-digit hexadecimal digital item type or type
|
Query
Name | Type | Description | Required |
---|---|---|---|
pageSize | number | Number of digital items per page
| |
pageToken | string | Token for the start of the page (that is, |
Body
None
- Authorization: Basic <Base64-encoded 'DOSI channel ID:secret'>
- Content-Type: application/json
Request examples
curl --location --request GET 'https://sdk-api.dosi.world/v1/wallets/link1....xvb/item-contracts/abcdabcd/item-types/aaaaaaaa/items' \
--header 'Authorization: Basic xxxxxxxx' \
--header 'Content-Type: application/json'
Get digital item list
As this endpoint will be deprecated, use GET {DOSI SDK base URI}/v1/wallets/{walletAddress}/contracts/{contractId}/item-types/{itemType}/items instead.
Gets the list of digital items in the user's DOSI account.
Path
Name | Type | Description |
---|---|---|
walletAddress | string | Wallet address of the user's DOSI account |
contractId | string | Contract ID received after applying for DOSI SDK. |
Query
Name | Type | Description | Required |
---|---|---|---|
itemType | string | Item type of the digital item. Represented by an 8-digit hexadecimal code. When specified, it searches for digital items belonging to the given item type. | |
limit | number | Number of digital items per page
| |
pageToken | string | Token for the start of the page (that is, |
Body
None
- Authorization: Basic <Base64-encoded 'DOSI channel ID:secret'>
- Content-Type: application/json
Request examples
curl --location --request GET 'https://sdk-api.dosi.world/v1/wallets/link1....xvb/contracts/abcdabcd/items' \
--header 'Authorization: Basic xxxxxxxx' \
--header 'Content-Type: application/json'