跳转到主要内容
POST
以命名参数传入资产 id:Token Metadata 和 Token-2022 资产传 mint,Metaplex Core 传资产账户,压缩 NFT 传资产 id。
  • 可用的方法名:getAsset 和 get_asset。
  • 显示选项放在 options 或 displayOptions 中。showCollectionMetadata 会在每个 grouping 条目中加入集合的名称、符号和图片。getAsset 始终只列出已验证的分组。
  • 未知 id 返回 -32000 和 RecordNotFound Error: Asset Not Found。mint 供应量为零的已销毁 NFT 返回 Asset has no supply。已销毁的压缩 NFT 仍可查询,并带有 burnt: true。
  • content.files 和 content.links 来自资产的链下 JSON。刚完成铸造或更改 URI 时,在 JSON 抓取完成前它们可能为空。
  • 未知的参数名会以 -32602 被拒绝。
  • 费用:1 积分,计入套餐的 DAS RPS 限制。
一次获取多个资产请使用 getAssets。显示选项和资产字段见 DAS API 概览。 请求配置和错误处理见 RPC 快速入门。计费见积分与限制。

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
必填

The name of the RPC method to invoke.

可用选项:
getAsset
示例:

"getAsset"

params
object
必填

Named parameters.

响应

The asset.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

A digital asset in the Metaplex DAS shape. Fields marked optional appear only for the asset types that carry them.