Smart Contracts (Testnet)

Module: market
back to overview
market
Methods: 5
Instances: 1
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
{
  "image_url": "<String>",
  "name": "<String>",
  "price": "<Amount in microCCD>",
  "total_supply": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NameLengthError": []
    },
    {
      "TotalSupplyError": []
    },
    {
      "ImageUrlError": []
    },
    {
      "ItemNotFoundError": []
    },
    {
      "ItemNotOwnedError": []
    }
  ]
}
Return
"<UInt64>"

Parameters
[
  "<UInt64>"
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NameLengthError": []
    },
    {
      "TotalSupplyError": []
    },
    {
      "ImageUrlError": []
    },
    {
      "ItemNotFoundError": []
    },
    {
      "ItemNotOwnedError": []
    }
  ]
}
Return
[
  [
    "<UInt64>",
    "<Bool>"
  ]
]

Parameters
[
  "<UInt64>",
  {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  }
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "NameLengthError": []
    },
    {
      "TotalSupplyError": []
    },
    {
      "ImageUrlError": []
    },
    {
      "ItemNotFoundError": []
    },
    {
      "ItemNotOwnedError": []
    }
  ]
}
Return
"<Bool>"

Parameters
[
  "<UInt64>"
]
Errors
None
Return
[
  {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "creator": {
              "Enum": [
                {
                  "Account": [
                    "<AccountAddress>"
                  ]
                },
                {
                  "Contract": [
                    {
                      "index": "<UInt64>",
                      "subindex": "<UInt64>"
                    }
                  ]
                }
              ]
            },
            "image_url": "<String>",
            "name": "<String>",
            "owners": [
              {
                "Enum": [
                  {
                    "Account": [
                      "<AccountAddress>"
                    ]
                  },
                  {
                    "Contract": [
                      {
                        "index": "<UInt64>",
                        "subindex": "<UInt64>"
                      }
                    ]
                  }
                ]
              }
            ],
            "price": "<Amount in microCCD>",
            "sold": "<UInt64>",
            "total_supply": "<UInt64>"
          }
        ]
      }
    ]
  }
]

Parameters
None
Errors
None
Return
"<UInt64>"
Address
🗎<2436,0>


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