Smart Contracts

Module: cis2_dsid
back to overview
cis2_dsid
Methods: 12
Instances: 0
Initialization

Parameters
None
Errors
None
Event
{
  "Enum": [
    {
      "TokenMetadata": {
        "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>"
      }
    },
    {
      "UpdateOperator": {
        "operator": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        },
        "owner": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        },
        "update": {
          "Enum": [
            {
              "Remove": []
            },
            {
              "Add": []
            }
          ]
        }
      }
    },
    {
      "Burn": {
        "amount": "<String of size at most 74 containing an unsigned integer.>",
        "owner": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        },
        "token_id": "<String with lowercase hex>"
      }
    },
    {
      "Mint": {
        "amount": "<String of size at most 74 containing an unsigned integer.>",
        "owner": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        },
        "token_id": "<String with lowercase hex>"
      }
    },
    {
      "Transfer": {
        "amount": "<String of size at most 74 containing an unsigned integer.>",
        "from": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        },
        "to": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        },
        "token_id": "<String with lowercase hex>"
      }
    }
  ]
}
Methods

Parameters
{
  "tokens": [
    {
      "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
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  "<String of size at most 74 containing an unsigned integer.>"
]

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  [
    {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
          ]
        }
      ]
    }
  ]
]

Parameters
{
  "owner": "<AccountAddress>",
  "tokens": [
    [
      "<String with lowercase hex>",
      {
        "amount": "<String of size at most 74 containing an unsigned integer.>",
        "expiry": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
      }
    ]
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

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

Parameters
{
  "tokens": [
    "<String with lowercase hex>"
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  "<String with lowercase hex>"
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
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
[
  {
    "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
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  {
    "operator": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "update": {
      "Enum": [
        {
          "Remove": []
        },
        {
          "Add": []
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "AccountsOnly": []
            },
            {
              "TokenExpired": []
            },
            {
              "TokenHasValidBalances": []
            },
            {
              "UpgradeMigrationError": []
            },
            {
              "UpgradeMissingModule": []
            },
            {
              "UpgradeMissingContract": []
            },
            {
              "UpgradeUnsupportedModuleVersion": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<9402,0>


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