Smart Contracts (Testnet)

Module: auction
back to overview
auction
Methods: 5
Instances: 1
Initialization

Parameters
{
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "minimum_raise": "<UInt64>",
  "participation_token": {
    "contract": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "token_id": "<String with lowercase hex>"
  }
}
Errors
None
Event
None
Methods

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "ContractOnly": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnAuthorized": []
    },
    {
      "AuctionAlreadyInitialized": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "BidBelowCurrentBid": []
    },
    {
      "BidBelowMinimumRaise": []
    },
    {
      "BidTooLate": []
    },
    {
      "AuctionNotOpen": []
    },
    {
      "NotAParticipant": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "auction_state": {
    "Enum": [
      {
        "NotInitialized": []
      },
      {
        "NotSoldYet": [
          {
            "amount": "<String of size at most 74 containing an unsigned integer.>",
            "contract": {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "token_id": "<String with lowercase hex>"
          }
        ]
      },
      {
        "Sold": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "highest_bidder": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "minimum_raise": "<UInt64>",
  "participants": [
    "<AccountAddress>"
  ],
  "participation_token": {
    "contract": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "token_id": "<String with lowercase hex>"
  }
}

Parameters
None
Errors
None
Return
"<Amount in microCCD>"

Parameters
None
Errors
{
  "Enum": [
    {
      "AuctionStillActive": []
    },
    {
      "AuctionNotOpen": []
    },
    {
      "Cis2TransferError": []
    }
  ]
}
Return
None
Address
🗎<8405,0>


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