OpenSea · Schema

AssetQuantityInput

An asset with quantity in base units

NFTMarketplaceWeb3BlockchainTradingDigital Assets

Properties

Name Type Description
chain string The blockchain chain
contract string The contract address
token_id string Token ID for NFTs
amount string Amount in base units (wei/lamports)
View JSON Schema on GitHub

JSON Schema

AssetQuantityInput.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opensea.io/schemas/AssetQuantityInput",
  "title": "AssetQuantityInput",
  "type": "object",
  "description": "An asset with quantity in base units",
  "properties": {
    "chain": {
      "type": "string",
      "description": "The blockchain chain",
      "example": "ethereum"
    },
    "contract": {
      "type": "string",
      "description": "The contract address",
      "example": "0x0000000000000000000000000000000000000000"
    },
    "token_id": {
      "type": "string",
      "description": "Token ID for NFTs",
      "example": 1234
    },
    "amount": {
      "type": "string",
      "description": "Amount in base units (wei/lamports)",
      "example": 1000000000000000000
    }
  },
  "required": [
    "amount",
    "chain",
    "contract"
  ]
}