Skip to content
70 changes: 53 additions & 17 deletions src/openrpc/alchemy/solana-das/solana-das.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,33 +133,69 @@ methods:

- name: getAssetsByOwner
description: Returns assets owned by the specified address.
paramStructure: by-name
params:
- name: Owner address
- name: ownerAddress
required: true
description: The owner address to filter assets by.
schema:
$ref: ../../chains/_components/solana/base-types.yaml#/components/schemas/Pubkey
- name: Configuration
- name: sortBy
required: false
description: Optional configuration object for sorting and pagination.
description: >
The field to sort by. Note: Only `id` is supported for cursor-based pagination
(using `before`/`after`). Sorting by `created`, `updated`, `recent_action`, or `none`
requires page-based pagination (using `page`).
schema:
type: string
enum:
- id
- created
- updated
- recent_action
- none
- name: sortDirection
required: false
description: Sort direction (ascending or descending).
schema:
$ref: ../../chains/_components/solana/asset.yaml#/components/schemas/GetAssetsByOwnerConfig
type: string
enum:
- asc
- desc
- name: limit
required: false
description: The maximum number of assets to retrieve (max 1000, default 100).
schema:
type: integer
- name: page
required: false
description: The index of the page to retrieve. Required when using sortBy values other than `id`.
schema:
type: integer
- name: before
required: false
description: Retrieve assets before this cursor. Only supported when sortBy is `id`.
schema:
type: string
- name: after
required: false
description: Retrieve assets after this cursor. Only supported when sortBy is `id`.
schema:
type: string
- name: options
required: false
description: Display options for the response.
schema:
$ref: ../../chains/_components/solana/asset.yaml#/components/schemas/DisplayOptions
examples:
- name: getAssetsByOwner example
params:
- name: Owner address
value:
ownerAddress: "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY"
page: 1
limit: 50
sortBy:
sortBy: "created"
sortDirection: "asc"
options:
showUnverifiedCollections: false
showCollectionMetadata: false
showFungible: false
showZeroBalance: false
- name: ownerAddress
value: "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY"
- name: limit
value: 50
- name: page
value: 1
result:
name: Assets by owner
description: Returns assets owned by the specified address.
Expand Down
62 changes: 41 additions & 21 deletions src/openrpc/chains/_components/solana/asset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@ components:
description: Display grand total.
default: false

AssetSorting:
title: Asset Sorting
type: object
description: Sorting configuration for assets.
properties:
sortBy:
type: string
enum:
- id
- created
- updated
- recent_action
- none
description: >
The field to sort by. Note: Only `id` is supported for cursor-based pagination
(using `before`/`after`). Sorting by `created`, `updated`, `recent_action`, or `none`
requires page-based pagination (using `page`).
sortDirection:
type: string
enum:
- asc
- desc
description: Sort direction (ascending or descending).

GetAssetConfig:
title: GetAsset Configuration
type: object
Expand Down Expand Up @@ -426,27 +450,23 @@ components:
type: object
properties:
sortBy:
type: object
description: Sorting criteria for assets.
properties:
sortBy:
type: string
enum:
- id
- created
- updated
- recentAction
- none
description: >
The field to sort by. Note: Only `id` is supported for cursor-based pagination
(using `before`/`after`). Sorting by `created`, `updated`, `recentAction`, or `none`
requires page-based pagination (using `page`).
sortDirection:
type: string
enum:
- asc
- desc
description: Sort direction.
type: string
enum:
- id
- created
- updated
- recent_action
- none
description: >
The field to sort by. Note: Only `id` is supported for cursor-based pagination
(using `before`/`after`). Sorting by `created`, `updated`, `recent_action`, or `none`
requires page-based pagination (using `page`).
sortDirection:
type: string
enum:
- asc
- desc
description: Sort direction.
limit:
type: integer
description: The maximum number of assets to retrieve.
Expand Down
Loading