> For the complete documentation index, see [llms.txt](https://docs.safle.com/safleid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.safle.com/safleid/safleid/safleids-technology/auction-functionalities-auction-contract.md).

# Auction Functionalities (Auction Contract)

1. **Auction SafleID: This method puts the users SafleID for auction**

   <pre class="language-solidity" data-overflow="wrap" data-full-width="true"><code class="lang-solidity">auctionSafleId(string calldata _safleId, uint256 _auctionSeconds) validateAuctionData(_safleId, _auctionSeconds) external returns (bool)
   </code></pre>
2. Bid for SafleID: This method allows users to bid for a SafleID that is available for auction

   <pre class="language-solidity" data-overflow="wrap" data-full-width="true"><code class="lang-solidity">bidForSafleId(string calldata _safleId) external payable returns (bool)
   </code></pre>
3. Refund to bidders: This method refunds the funds to all users except the winner. It internally calls the method to transfer SafleID ownership to the winner

   <pre class="language-solidity" data-overflow="wrap" data-full-width="true"><code class="lang-solidity">refundOtherBidders() external returns (bool)
   </code></pre>
4. Transfer SafleID: This method transfers the ownership of a SafleID to the highest bidder

   <pre class="language-solidity" data-overflow="wrap" data-full-width="true"><code class="lang-solidity">transferSafleIdToWinner() internal returns (bool)
   </code></pre>
5. Get list of bidders: This method fetches the list of all bidders for an auction

   <pre class="language-solidity" data-overflow="wrap" data-full-width="true"><code class="lang-solidity">arrayOfbidders (address _auctioner) external view returns (address payable[] memory)
   </code></pre>
6. Get bid rate: This method fetches the bid of a particular bidder for an auction

   <pre class="language-solidity" data-overflow="wrap" data-full-width="true"><code class="lang-solidity">getBidRate (address _auctioner, address _bidder) external view returns (uint256)
   </code></pre>
