Smart Contracts (Testnet)

Module: track_and_trace
back to overview
track_and_trace
Methods: 3
Instances: 0
Initialization

Parameters
[
  {
    "authorized_account": "<AccountAddress>",
    "from": {
      "Enum": [
        {
          "Produced": []
        },
        {
          "InTransit": []
        },
        {
          "InStore": []
        },
        {
          "Sold": []
        }
      ]
    },
    "to": [
      {
        "Enum": [
          {
            "Produced": []
          },
          {
            "InTransit": []
          },
          {
            "InStore": []
          },
          {
            "Sold": []
          }
        ]
      }
    ]
  }
]
Errors
None
Event
{
  "Enum": [
    {
      "GrantRole": [
        {
          "address": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          },
          "role": {
            "Enum": [
              {
                "Admin": []
              }
            ]
          }
        }
      ]
    },
    {
      "RevokeRole": [
        {
          "address": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          },
          "role": {
            "Enum": [
              {
                "Admin": []
              }
            ]
          }
        }
      ]
    },
    {
      "ItemStatusChanged": [
        {
          "additional_data": {
            "bytes": [
              "<UInt8>"
            ]
          },
          "item_id": "<String with lowercase hex>",
          "new_status": {
            "Enum": [
              {
                "Produced": []
              },
              {
                "InTransit": []
              },
              {
                "InStore": []
              },
              {
                "Sold": []
              }
            ]
          }
        }
      ]
    },
    {
      "ItemCreated": [
        {
          "initial_status": {
            "Enum": [
              {
                "Produced": []
              },
              {
                "InTransit": []
              },
              {
                "InStore": []
              },
              {
                "Sold": []
              }
            ]
          },
          "item_id": "<String with lowercase hex>",
          "metadata_url": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  {
                    "hash": {
                      "Enum": [
                        {
                          "None": []
                        },
                        {
                          "Some": [
                            "<String of size 64 containing lowercase hex characters.>"
                          ]
                        }
                      ]
                    },
                    "url": "<String>"
                  }
                ]
              }
            ]
          }
        }
      ]
    },
    {
      "Nonce": [
        {
          "account": "<AccountAddress>",
          "nonce": "<UInt64>"
        }
      ]
    }
  ]
}
Methods

Parameters
{
  "additional_data": {
    "bytes": [
      "<UInt8>"
    ]
  },
  "item_id": "<String with lowercase hex>",
  "new_status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "Unauthorized": []
            },
            {
              "ItemAlreadyExists": []
            },
            {
              "ItemDoesNotExist": []
            },
            {
              "FinalState": []
            },
            {
              "NoContract": []
            },
            {
              "MissingAccount": []
            },
            {
              "MalformedData": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "Unsuccessful": []
            }
          ]
        }
      ]
    }
  ]
}
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>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "Unauthorized": []
            },
            {
              "ItemAlreadyExists": []
            },
            {
              "ItemDoesNotExist": []
            },
            {
              "FinalState": []
            },
            {
              "NoContract": []
            },
            {
              "MissingAccount": []
            },
            {
              "MalformedData": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "Unsuccessful": []
            }
          ]
        }
      ]
    }
  ]
}
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>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "Unauthorized": []
            },
            {
              "ItemAlreadyExists": []
            },
            {
              "ItemDoesNotExist": []
            },
            {
              "FinalState": []
            },
            {
              "NoContract": []
            },
            {
              "MissingAccount": []
            },
            {
              "MalformedData": []
            },
            {
              "WrongSignature": []
            },
            {
              "NonceMismatch": []
            },
            {
              "WrongContract": []
            },
            {
              "WrongEntryPoint": []
            },
            {
              "Expired": []
            },
            {
              "Unsuccessful": []
            }
          ]
        }
      ]
    }
  ]
}
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>"
]
Address
🗎<9560,0>


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