Smart Contracts (Testnet)

Module: trader
back to overview
trader
Methods: 14
Instances: 1
Initialization

Parameters
{
  "inventory": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "tax_percent": "<UInt64>"
}
Errors
None
Event
None
Methods

Parameters
{
  "inventory": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "tax_percent": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "amount": "<Amount in microCCD>",
  "recipient": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "price": "<Amount in microCCD>",
  "token_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "price": "<Amount in microCCD>",
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "creator": "<AccountAddress>",
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "creator": "<AccountAddress>",
  "receiver": "<AccountAddress>",
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "token_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "receiver": "<AccountAddress>",
  "token_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "token_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "token_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "sender": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "token_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "NoTokenTrader": []
            },
            {
              "PermissionDenied": []
            },
            {
              "OwnerMismatch": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "OptionNotAllowed": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "NonWhitelistedContract": []
            },
            {
              "BuyForError": []
            },
            {
              "SellForError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<6613,0>


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