Smart Contracts

Module: trader
back to overview
trader
Methods: 12
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": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "tax_percent": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "amount": "<Amount in microCCD>",
  "recipient": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "royalty_percent": "<UInt64>",
  "token_id": "<UInt64>",
  "url": "<String>",
  "value": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "bid_additional_time": "<Duration (e.g. `10d 1h 42s`)>",
  "lot_id": "<UInt64>",
  "price": "<Amount in microCCD>",
  "to_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "token_id": "<UInt64>",
  "value": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "bid_additional_time": "<Duration (e.g. `10d 1h 42s`)>",
  "lot_id": "<UInt64>",
  "price": "<Amount in microCCD>",
  "royalty_percent": "<UInt64>",
  "to_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "token_id": "<UInt64>",
  "url": "<String>",
  "value": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>",
  "receiver": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "lot_id": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<9374,0>


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