Smart Contracts

Module: cis3_nft
back to overview
cis3_nft
Methods: 19
Instances: 2
Initialization

Parameters
None
Errors
None
Event
{
  "Enum": [
    {
      "Registration": {
        "account": "<AccountAddress>",
        "public_key": "<String of size 64 containing lowercase hex characters.>"
      }
    },
    {
      "Nonce": {
        "account": "<AccountAddress>",
        "nonce": "<UInt64>"
      }
    },
    {
      "TokenMetadata": {
        "metadata_url": {
          "hash": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String of size 64 containing lowercase hex characters.>"
                ]
              }
            ]
          },
          "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
None
Errors
None
Return
{
  "all_public_keys_and_nonces": [
    [
      "<AccountAddress>",
      [
        "<String of size 64 containing lowercase hex characters.>",
        "<UInt64>"
      ]
    ]
  ],
  "all_tokens": [
    "<String with lowercase hex>"
  ],
  "state": [
    [
      {
        "Enum": [
          {
            "Account": [
              "<AccountAddress>"
            ]
          },
          {
            "Contract": [
              {
                "index": "<UInt64>",
                "subindex": "<UInt64>"
              }
            ]
          }
        ]
      },
      {
        "operators": [
          {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          }
        ],
        "owned_tokens": [
          "<String with lowercase hex>"
        ]
      }
    ]
  ]
}

Parameters
[
  [
    {
      "account": "<AccountAddress>",
      "public_key": "<String of size 64 containing lowercase hex characters.>"
    }
  ]
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "owner": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "tokens": [
    [
      "<String with lowercase hex>",
      {
        "metadata_url": [
          {
            "hash": {
              "Enum": [
                {
                  "None": []
                },
                {
                  "Some": [
                    "<String of size 64 containing lowercase hex characters.>"
                  ]
                }
              ]
            },
            "url": "<String>"
          }
        ],
        "token_amount": "<String of size at most 74 containing an unsigned integer.>"
      }
    ]
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  {
    "amount": "<String of size at most 74 containing an unsigned integer.>",
    "data": [
      "<UInt8>"
    ],
    "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": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "contract_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "entry_point": "<String>",
  "nonce": "<UInt64>",
  "payload": [
    "<UInt8>"
  ],
  "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
None
Return
None

Parameters
{
  "message": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "payload": [
      "<UInt8>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "signature": [
    [
      "<UInt8>",
      [
        [
          "<UInt8>",
          "<String of size 128 containing lowercase hex characters.>"
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
None
Return
[
  "<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>"
]

Parameters
{
  "message": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "payload": [
      "<UInt8>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "signature": [
    [
      "<UInt8>",
      [
        [
          "<UInt8>",
          "<String of size 128 containing lowercase hex characters.>"
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
None
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": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "owner": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  "<Bool>"
]

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": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  "<String of size at most 74 containing an unsigned integer.>"
]

Parameters
{
  "queries": [
    {
      "account": "<AccountAddress>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  [
    {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            [
              "<String of size 64 containing lowercase hex characters.>",
              "<UInt64>"
            ]
          ]
        }
      ]
    }
  ]
]

Parameters
[
  "<String with lowercase hex>"
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String of size 64 containing lowercase hex characters.>"
          ]
        }
      ]
    },
    "url": "<String>"
  }
]

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "queries": [
    "<String>"
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "id": "<String>",
  "implementors": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "TokenIdAlreadyExists": []
            },
            {
              "MaxTokenID": []
            },
            {
              "InvokeContractError": []
            },
            {
              "AccountAlreadyRegistered": []
            },
            {
              "NoPublicKey": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "SignatureMapMisconfigured": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status