跳转到主要内容
POST
/
getAssetBatch
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getAssetBatch",
  "params": {
    "ids": [
      "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk"
    ]
  }
}'
[
  {
    "interface": "ProgrammableNFT",
    "id": "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
    "content": {
      "last_indexed_slot": 365750752,
      "$schema": "https://schema.metaplex.com/nft1.0.json",
      "json_uri": "https://madlads.s3.us-west-2.amazonaws.com/json/8420.json",
      "files": [
        {
          "uri": "https://madlads.s3.us-west-2.amazonaws.com/images/8420.png",
          "cdn_uri": "https://cdn.helius-rpc.com/cdn-cgi/image//https://madlads.s3.us-west-2.amazonaws.com/images/8420.png",
          "mime": "image/png"
        }
      ],
      "metadata": {
        "attributes": [
          {
            "value": "男性",
            "trait_type": "性别"
          },
          {
            "value": "国王",
            "trait_type": "类型"
          }
        ],
        "description": "随便吧。",
        "name": "疯狂小子 #8420",
        "symbol": "MAD"
      }
    },
    "authorities": [
      {
        "address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
        "scopes": [
          "full"
        ]
      }
    ],
    "compression": {
      "eligible": false,
      "compressed": false,
      "data_hash": "",
      "creator_hash": "",
      "asset_hash": "",
      "tree": "",
      "seq": 0,
      "leaf_id": 0
    },
    "grouping": [
      {
        "group_key": "集合",
        "group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"
      }
    ],
    "royalty": {
      "royalty_model": "创作者",
      "target": null,
      "percent": 0.042,
      "basis_points": 420,
      "primary_sale_happened": true,
      "locked": false
    },
    "creators": [
      {
        "address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv",
        "share": 0,
        "verified": true
      },
      {
        "address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
        "share": 100,
        "verified": true
      }
    ],
    "ownership": {
      "frozen": true,
      "delegated": false,
      "delegate": null,
      "ownership_model": "single",
      "owner": "4zdNGgAtFsW1cQgHqkiWyRsxaAgxrSRRynnuunxzjxue"
    },
    "supply": {
      "print_max_supply": 0,
      "print_current_supply": 0,
      "edition_nonce": 254
    },
    "token_info": {
      "symbol": "<string>",
      "supply": 123,
      "decimals": 123,
      "token_program": "<string>",
      "price_info": {
        "price_per_token": 123,
        "currency": "<string>"
      },
      "mint_authority": "<string>",
      "freeze_authority": "<string>"
    },
    "inscription": {
      "order": 123,
      "size": 123,
      "contentType": "<string>",
      "encoding": "<string>",
      "validationHash": "<string>",
      "inscriptionDataAccount": "<string>",
      "authority": "<string>"
    },
    "spl20": {}
  }
]

Authorizations

api-key
string
query
required

您的 Helius API 密钥。您可以在仪表板中免费获取一个。

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC 协议的版本。

Available options:
2.0
id
string
default:1
required

用于标识请求的 ID。

Example:

"1"

method
enum<string>
default:getAssetBatch
required

要调用的 DAS 方法的名称。

Available options:
getAssetBatch
params
object
required
Example:
{
"ids": [
"F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk"
]
}

Response

成功响应

资产数组。

interface
enum<string>

资产的接口。

Available options:
V1_NFT,
V1_PRINT,
LEGACY_NFT,
V2_NFT,
FungibleAsset,
FungibleToken,
Custom,
Identity,
Executable,
ProgrammableNFT
Example:

"ProgrammableNFT"

id
string

资产的ID。

Example:

"F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk"

content
object

资产的内容。

authorities
object[]
Example:
[
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"scopes": ["full"]
}
]
compression
object
Example:
{
"eligible": false,
"compressed": false,
"data_hash": "",
"creator_hash": "",
"asset_hash": "",
"tree": "",
"seq": 0,
"leaf_id": 0
}
grouping
object[]
Example:
[
{
"group_key": "集合",
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"
}
]
royalty
object
Example:
{
"royalty_model": "创作者",
"target": null,
"percent": 0.042,
"basis_points": 420,
"primary_sale_happened": true,
"locked": false
}
creators
object[]
Example:
[
{
"address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv",
"share": 0,
"verified": true
},
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"share": 100,
"verified": true
}
]
ownership
object
Example:
{
"frozen": true,
"delegated": false,
"delegate": null,
"ownership_model": "single",
"owner": "4zdNGgAtFsW1cQgHqkiWyRsxaAgxrSRRynnuunxzjxue"
}
supply
object
Example:
{
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 254
}
token_info
object

关于特定代币的详细信息。

inscription
object
spl20
object
I