Skip to main content
Version: 1.2.0-1.3.0

Basics - Item fetching

Using the item fetching feature, you can check digital items in the user’s DOSI account.

Connection info

Development environmentDOSI SDK base URI
Productionhttps://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.

GET {DOSI SDK base URI}/v1/wallets/{walletAddress}/item-contracts/{contractId}/item-types/{itemType}/items

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
TypeDescription
walletAddressstring

Address of the user's wallet

contractIdstring

Contract ID of the digital items. Enter the contract ID received after applying for DOSI SDK or any contract ID existing on Finschia.

itemTypestring

Digital item type for retrieval. Provide an 8-digit hexadecimal digital item type or type *.

  • When you specify an item type, it gets digital items with the given item type only.
  • When you type in *, it gets digital items with all item types under the given contract ID.

Query

Name
TypeDescription
Required
pageSizenumber

Number of digital items per page

  • Default: 10
  • Minimum: 1
  • Maximum: 100
pageTokenstring

Token for the start of the page (that is, nextPageToken in the response for the previous page). Starts from the first page if not provided.

Body

None

Headers
  • 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.

GET {DOSI SDK base URI}/v1/wallets/{walletAddress}/contracts/{contractId}/items

Path

Name
TypeDescription
walletAddressstring

Wallet address of the user's DOSI account

contractIdstring

Contract ID received after applying for DOSI SDK.

Query

Name
TypeDescription
Required
itemTypestring

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.

limitnumber

Number of digital items per page

  • Default: 10
  • Minimum: 1
  • Maximum: 100
pageTokenstring

Token for the start of the page (that is, nextPageToken in the response for the previous page). Starts from the first page if not provided.

Body

None

Headers
  • 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'