Smart Contracts

Module: CIS2-TOKEN
back to overview
CIS2-TOKEN
Methods: 10
Instances: 6
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
{
  "owner": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "tokens": [
    [
      "<String with lowercase hex>",
      "<String of size at most 74 containing an unsigned integer.>"
    ]
  ]
}
Errors
None
Return
None

Parameters
{
  "owner": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "tokens": [
    [
      "<String with lowercase hex>",
      "<String of size at most 74 containing an unsigned integer.>"
    ]
  ]
}
Errors
None
Return
None

Parameters
[
  {
    "amount": "<String of size at most 74 containing an unsigned integer.>",
    "data": "<String with lowercase hex>",
    "from": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "to": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "<String>"
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
None
Return
None

Parameters
[
  {
    "operator": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "update": {
      "Enum": [
        {
          "Remove": []
        },
        {
          "Add": []
        }
      ]
    }
  }
]
Errors
None
Return
None

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
None
Return
[
  "<String of size at most 74 containing an unsigned integer.>"
]

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "owner": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    }
  }
]
Errors
None
Return
[
  "<Bool>"
]

Parameters
[
  "<String with lowercase hex>"
]
Errors
None
Return
[
  {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            [
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>"
            ]
          ]
        }
      ]
    },
    "url": "<String>"
  }
]

Parameters
[
  {
    "metadata_url": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              [
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>",
                "<UInt8>"
              ]
            ]
          }
        ]
      },
      "url": "<String>"
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
None
Return
[]

Parameters
[
  "<String>"
]
Errors
None
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "id": "<String>",
  "implementors": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
None
Return
None


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership