Smart Contracts (Testnet)

Module: track_and_trace
back to overview
track_and_trace
Methods: 16
Instances: 1
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
None
Errors
None
Return
"<UInt64>"

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

Parameters
"<String with lowercase hex>"
Errors
None
Return
{
  "metadata_url": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "hash": {
              "Enum": [
                {
                  "None": []
                },
                {
                  "Some": [
                    "<String of size 64 containing lowercase hex characters.>"
                  ]
                }
              ]
            },
            "url": "<String>"
          }
        ]
      }
    ]
  },
  "status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  }
}

Parameters
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        {
          "hash": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String of size 64 containing lowercase hex characters.>"
                ]
              }
            ]
          },
          "url": "<String>"
        }
      ]
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
None

Parameters
{
  "additional_data": {
    "bytes": [
      "<UInt8>"
    ]
  },
  "item_id": "<String with lowercase hex>",
  "new_status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
None

Parameters
{
  "address": "<AccountAddress>",
  "from_status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  },
  "to_status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  },
  "update": {
    "Enum": [
      {
        "Remove": []
      },
      {
        "Add": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
None

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "role": {
    "Enum": [
      {
        "Admin": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
None

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "role": {
    "Enum": [
      {
        "Admin": []
      }
    ]
  }
}
Errors
{
  "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": [
    {
      "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": [
    {
      "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>"
]

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "queries": [
    "<String>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

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
[
  "<AccountAddress>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
[
  "<UInt64>"
]

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "role": {
    "Enum": [
      {
        "Admin": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
"<Bool>"

Parameters
{
  "account": "<AccountAddress>",
  "from_status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  },
  "to_status": {
    "Enum": [
      {
        "Produced": []
      },
      {
        "InTransit": []
      },
      {
        "InStore": []
      },
      {
        "Sold": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "Unauthorized": []
    },
    {
      "ItemAlreadyExists": []
    },
    {
      "ItemDoesNotExist": []
    },
    {
      "FinalState": []
    },
    {
      "NoContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "Unsuccessful": []
    }
  ]
}
Return
"<Bool>"
Address
🗎<8901,0>


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