Uniblock · JSON-LD Context

Uniblock Context

JSON-LD context defining the semantic vocabulary for Uniblock from Uniblock.

0 Classes 7 Properties 4 Namespaces
View Context View on GitHub

Namespaces

uniblock: https://uniblock.dev/ns/
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/

Properties

Property Type Container
Token
NFT
NftCollection
Transaction
TokenTransfer
MarketData
WebhookEvent

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "uniblock": "https://uniblock.dev/ns/",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",

    "Token": {
      "@id": "uniblock:Token",
      "@context": {
        "name": "schema:name",
        "symbol": "uniblock:symbol",
        "decimals": {
          "@id": "uniblock:decimals",
          "@type": "xsd:integer"
        },
        "contractAddress": "uniblock:contractAddress",
        "chain": "uniblock:chain",
        "logo": {
          "@id": "schema:image",
          "@type": "@id"
        },
        "totalSupply": {
          "@id": "uniblock:totalSupply",
          "@type": "xsd:string"
        }
      }
    },

    "NFT": {
      "@id": "uniblock:NFT",
      "@context": {
        "name": "schema:name",
        "description": "schema:description",
        "contractAddress": "uniblock:contractAddress",
        "tokenId": "uniblock:tokenId",
        "tokenType": "uniblock:tokenType",
        "imageUrl": {
          "@id": "schema:image",
          "@type": "@id"
        },
        "animationUrl": {
          "@id": "schema:contentUrl",
          "@type": "@id"
        },
        "collectionName": "uniblock:collectionName",
        "attributes": {
          "@id": "uniblock:attributes",
          "@container": "@set"
        }
      }
    },

    "NftCollection": {
      "@id": "uniblock:NftCollection",
      "@context": {
        "name": "schema:name",
        "description": "schema:description",
        "contractAddress": "uniblock:contractAddress",
        "symbol": "uniblock:symbol",
        "totalSupply": {
          "@id": "uniblock:totalSupply",
          "@type": "xsd:integer"
        },
        "imageUrl": {
          "@id": "schema:image",
          "@type": "@id"
        },
        "floorPrice": {
          "@id": "uniblock:floorPrice",
          "@type": "xsd:decimal"
        },
        "chain": "uniblock:chain"
      }
    },

    "Transaction": {
      "@id": "uniblock:Transaction",
      "@context": {
        "transactionHash": "uniblock:transactionHash",
        "from": "uniblock:fromAddress",
        "to": "uniblock:toAddress",
        "value": "uniblock:value",
        "blockNumber": {
          "@id": "uniblock:blockNumber",
          "@type": "xsd:integer"
        },
        "blockTimestamp": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "status": "uniblock:status",
        "gasUsed": "uniblock:gasUsed",
        "gasPrice": "uniblock:gasPrice",
        "nonce": {
          "@id": "uniblock:nonce",
          "@type": "xsd:integer"
        }
      }
    },

    "TokenTransfer": {
      "@id": "uniblock:TokenTransfer",
      "@context": {
        "transactionHash": "uniblock:transactionHash",
        "from": "uniblock:fromAddress",
        "to": "uniblock:toAddress",
        "value": "uniblock:value",
        "contractAddress": "uniblock:contractAddress",
        "tokenName": "schema:name",
        "tokenSymbol": "uniblock:symbol",
        "blockNumber": {
          "@id": "uniblock:blockNumber",
          "@type": "xsd:integer"
        },
        "blockTimestamp": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        }
      }
    },

    "MarketData": {
      "@id": "uniblock:MarketData",
      "@context": {
        "price": {
          "@id": "schema:price",
          "@type": "xsd:decimal"
        },
        "marketCap": {
          "@id": "uniblock:marketCap",
          "@type": "xsd:decimal"
        },
        "volume24h": {
          "@id": "uniblock:volume24h",
          "@type": "xsd:decimal"
        },
        "contractAddress": "uniblock:contractAddress",
        "chain": "uniblock:chain"
      }
    },

    "WebhookEvent": {
      "@id": "uniblock:WebhookEvent",
      "@context": {
        "webhookId": "uniblock:webhookId",
        "eventType": "uniblock:eventType",
        "chain": "uniblock:chain",
        "timestamp": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        }
      }
    }
  }
}