POST
/
铸造压缩 Solana NFT
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "<string>",
  "method": "mintCompressedNft",
  "params": {
    "name": "被封印的艾克佐迪亚",
    "symbol": "ETFO",
    "description": "被封印的艾克佐迪亚是一种强大而传奇的生物。",
    "owner": "DCQnfUH6mHA333mzkU22b4hMvyqcejUBociodq8bB5HF",
    "delegate": "DCQnfUH6mHA333mzkU22b4hMvyqcejUBociodq8bB5HF",
    "collection": "<string>",
    "uri": "<string>",
    "attributes": [
      {
        "trait_type": "稀有度",
        "value": "神话"
      }
    ],
    "imageUrl": "https://cdna.artstation.com/p/assets/images/images/052/118/830/large/julie-almoneda-03.jpg?1658992401",
    "externalUrl": "https://www.yugioh-card.com/en/",
    "sellerFeeBasisPoints": 5000,
    "creators": [
      {
        "address": "DCQnfUH6mHA333mzkU22b4hMvyqcejUBociodq8bB5HF",
        "share": 100
      }
    ],
    "confirmTransaction": true
  }
}'
{
  "jsonrpc": "2.0",
  "id": "<string>",
  "result": {
    "signature": "4FRxjAvHLGCEUXJqkucG7SdKrrmAeqjfTQKmhMZWvqGvkPGvWeZXY8Vfj8oxXtGnf7q3n4n8XHVDsExkpCtAEdKj",
    "minted": true,
    "assetId": "6sx2ChPvudKVt4Gc6qr3X4FFwtM4vVa6uZMmQHn5udQE"
  }
}

Authorizations

api-key
string
query
required

Query Parameters

api-key
string
required

用于身份验证和访问压缩 NFT 铸造的 Helius API 密钥。

Example:

"string"

Body

application/json

Response

200
application/json

成功铸造压缩的 Solana NFT

The response is of type object.