Smart Contracts

Module: trader
back to overview
trader
Methods: 13
Instances: 0
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
{
  "bid_additional_time": "<Duration (e.g. `10d 1h 42s`)>",
  "price": "<Amount in microCCD>",
  "to_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "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
{
  "bid_additional_time": "<Duration (e.g. `10d 1h 42s`)>",
  "price": "<Amount in microCCD>",
  "royalty_percent": "<UInt64>",
  "to_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "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
{
  "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
🗎<9371,0>


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