Smart Contracts (Testnet)

Module: ccd_redeem
back to overview
ccd_redeem
Methods: 7
Instances: 1
Initialization

Parameters
{
  "coins": [
    [
      "<String of size 64 containing lowercase hex characters.>",
      "<Amount in microCCD>"
    ]
  ]
}
Errors
None
Event
None
Methods

Parameters
{
  "account": "<AccountAddress>",
  "public_key": "<String of size 64 containing lowercase hex characters.>",
  "signature": "<String of size 128 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "CoinNotFound": []
    },
    {
      "CoinAlreadyRedeemed": []
    },
    {
      "CoinAlreadyExists": []
    },
    {
      "InvokeTransfer": []
    },
    {
      "InvalidSignatures": []
    },
    {
      "NotAuthorized": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedSignatureData": []
    },
    {
      "AmountDoesNotMatch": []
    }
  ]
}
Return
None

Parameters
{
  "coins": [
    [
      "<String of size 64 containing lowercase hex characters.>",
      "<Amount in microCCD>"
    ]
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "CoinNotFound": []
    },
    {
      "CoinAlreadyRedeemed": []
    },
    {
      "CoinAlreadyExists": []
    },
    {
      "InvokeTransfer": []
    },
    {
      "InvalidSignatures": []
    },
    {
      "NotAuthorized": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedSignatureData": []
    },
    {
      "AmountDoesNotMatch": []
    }
  ]
}
Return
None

Parameters
"<AccountAddress>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "CoinNotFound": []
    },
    {
      "CoinAlreadyRedeemed": []
    },
    {
      "CoinAlreadyExists": []
    },
    {
      "InvokeTransfer": []
    },
    {
      "InvalidSignatures": []
    },
    {
      "NotAuthorized": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedSignatureData": []
    },
    {
      "AmountDoesNotMatch": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "admin": "<AccountAddress>",
  "coins": [
    [
      "<String of size 64 containing lowercase hex characters.>",
      {
        "amount": "<Amount in microCCD>",
        "is_redeemed": "<Bool>"
      }
    ]
  ]
}

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
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>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
None
Return
None

Parameters
{
  "queries": [
    "<String>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "CoinNotFound": []
    },
    {
      "CoinAlreadyRedeemed": []
    },
    {
      "CoinAlreadyExists": []
    },
    {
      "InvokeTransfer": []
    },
    {
      "InvalidSignatures": []
    },
    {
      "NotAuthorized": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedSignatureData": []
    },
    {
      "AmountDoesNotMatch": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]
Address
🗎<7048,0>


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