Smart Contracts

Module: smart_contract_wallet
back to overview
smart_contract_wallet
Methods: 15
Instances: 0
Initialization

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Event
{
  "Enum": [
    {
      "TransferCis2Tokens": [
        {
          "cis2_token_contract_address": {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          },
          "from": "<String of size 64 containing lowercase hex characters.>",
          "to": "<String of size 64 containing lowercase hex characters.>",
          "token_amount": "<String of size at most 74 containing an unsigned integer.>",
          "token_id": "<String with lowercase hex>"
        }
      ]
    },
    {
      "TransferCcd": [
        {
          "ccd_amount": "<Amount in microCCD>",
          "from": "<String of size 64 containing lowercase hex characters.>",
          "to": "<String of size 64 containing lowercase hex characters.>"
        }
      ]
    },
    {
      "WithdrawCis2Tokens": [
        {
          "cis2_token_contract_address": {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          },
          "from": "<String of size 64 containing lowercase hex characters.>",
          "to": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          },
          "token_amount": "<String of size at most 74 containing an unsigned integer.>",
          "token_id": "<String with lowercase hex>"
        }
      ]
    },
    {
      "WithdrawCcd": [
        {
          "ccd_amount": "<Amount in microCCD>",
          "from": "<String of size 64 containing lowercase hex characters.>",
          "to": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          }
        }
      ]
    },
    {
      "DepositCis2Tokens": [
        {
          "cis2_token_contract_address": {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          },
          "from": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          },
          "to": "<String of size 64 containing lowercase hex characters.>",
          "token_amount": "<String of size at most 74 containing an unsigned integer.>",
          "token_id": "<String with lowercase hex>"
        }
      ]
    },
    {
      "DepositCcd": [
        {
          "ccd_amount": "<Amount in microCCD>",
          "from": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          },
          "to": "<String of size 64 containing lowercase hex characters.>"
        }
      ]
    },
    {
      "Nonce": [
        {
          "nonce": "<UInt64>",
          "public_key": "<String of size 64 containing lowercase hex characters.>"
        }
      ]
    }
  ]
}
Methods

Parameters
"<String of size 64 containing lowercase hex characters.>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "data": "<String with lowercase hex>",
  "from": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
{
  "entry_point": "<String>",
  "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "nonce": "<UInt64>",
  "service_fee_amount": "<Amount in microCCD>",
  "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
  "simple_withdraws": [
    {
      "data": "<String with lowercase hex>",
      "to": {
        "Enum": [
          {
            "Account": [
              "<AccountAddress>"
            ]
          },
          {
            "Contract": [
              {
                "index": "<UInt64>",
                "subindex": "<UInt64>"
              },
              "<String>"
            ]
          }
        ]
      },
      "withdraw_amount": "<Amount in microCCD>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
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
{
  "entry_point": "<String>",
  "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "nonce": "<UInt64>",
  "service_fee_amount": {
    "cis2_token_contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "token_amount": "<String of size at most 74 containing an unsigned integer.>",
    "token_id": "<String with lowercase hex>"
  },
  "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
  "simple_withdraws": [
    {
      "data": "<String with lowercase hex>",
      "to": {
        "Enum": [
          {
            "Account": [
              "<AccountAddress>"
            ]
          },
          {
            "Contract": [
              {
                "index": "<UInt64>",
                "subindex": "<UInt64>"
              },
              "<String>"
            ]
          }
        ]
      },
      "withdraw_amount": {
        "cis2_token_contract_address": {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        },
        "token_amount": "<String of size at most 74 containing an unsigned integer.>",
        "token_id": "<String with lowercase hex>"
      }
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
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": {
      "entry_point": "<String>",
      "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "nonce": "<UInt64>",
      "service_fee_amount": "<Amount in microCCD>",
      "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
      "simple_withdraws": [
        {
          "data": "<String with lowercase hex>",
          "to": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  },
                  "<String>"
                ]
              }
            ]
          },
          "withdraw_amount": "<Amount in microCCD>"
        }
      ]
    },
    "signature": "<String of size 128 containing lowercase hex characters.>",
    "signer": "<String of size 64 containing lowercase hex characters.>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
[
  {
    "message": {
      "entry_point": "<String>",
      "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "nonce": "<UInt64>",
      "service_fee_amount": {
        "cis2_token_contract_address": {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        },
        "token_amount": "<String of size at most 74 containing an unsigned integer.>",
        "token_id": "<String with lowercase hex>"
      },
      "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
      "simple_withdraws": [
        {
          "data": "<String with lowercase hex>",
          "to": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  },
                  "<String>"
                ]
              }
            ]
          },
          "withdraw_amount": {
            "cis2_token_contract_address": {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "token_amount": "<String of size at most 74 containing an unsigned integer.>",
            "token_id": "<String with lowercase hex>"
          }
        }
      ]
    },
    "signature": "<String of size 128 containing lowercase hex characters.>",
    "signer": "<String of size 64 containing lowercase hex characters.>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
{
  "entry_point": "<String>",
  "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "nonce": "<UInt64>",
  "service_fee_amount": "<Amount in microCCD>",
  "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
  "simple_transfers": [
    {
      "to": "<String of size 64 containing lowercase hex characters.>",
      "transfer_amount": "<Amount in microCCD>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
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
{
  "entry_point": "<String>",
  "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "nonce": "<UInt64>",
  "service_fee_amount": {
    "cis2_token_contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "token_amount": "<String of size at most 74 containing an unsigned integer.>",
    "token_id": "<String with lowercase hex>"
  },
  "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
  "simple_transfers": [
    {
      "to": "<String of size 64 containing lowercase hex characters.>",
      "transfer_amount": {
        "cis2_token_contract_address": {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        },
        "token_amount": "<String of size at most 74 containing an unsigned integer.>",
        "token_id": "<String with lowercase hex>"
      }
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
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": {
      "entry_point": "<String>",
      "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "nonce": "<UInt64>",
      "service_fee_amount": "<Amount in microCCD>",
      "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
      "simple_transfers": [
        {
          "to": "<String of size 64 containing lowercase hex characters.>",
          "transfer_amount": "<Amount in microCCD>"
        }
      ]
    },
    "signature": "<String of size 128 containing lowercase hex characters.>",
    "signer": "<String of size 64 containing lowercase hex characters.>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
[
  {
    "message": {
      "entry_point": "<String>",
      "expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "nonce": "<UInt64>",
      "service_fee_amount": {
        "cis2_token_contract_address": {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        },
        "token_amount": "<String of size at most 74 containing an unsigned integer.>",
        "token_id": "<String with lowercase hex>"
      },
      "service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
      "simple_transfers": [
        {
          "to": "<String of size 64 containing lowercase hex characters.>",
          "transfer_amount": {
            "cis2_token_contract_address": {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "token_amount": "<String of size at most 74 containing an unsigned integer.>",
            "token_id": "<String with lowercase hex>"
          }
        }
      ]
    },
    "signature": "<String of size 128 containing lowercase hex characters.>",
    "signer": "<String of size 64 containing lowercase hex characters.>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
{
  "id": "<String>",
  "implementors": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
[
  "<String of size 64 containing lowercase hex characters.>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
[
  "<Amount in microCCD>"
]

Parameters
[
  {
    "cis2_token_contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "public_key": "<String of size 64 containing lowercase hex characters.>",
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
[
  "<String of size at most 74 containing an unsigned integer.>"
]

Parameters
[
  "<String of size 64 containing lowercase hex characters.>"
]
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "OnlyContract": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "Expired": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "UnAuthorized": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
[
  "<UInt64>"
]
Address
🗎<9605,0>


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