> For the complete documentation index, see [llms.txt](https://docs.quipuswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quipuswap.com/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/admin-entrypoints/set_auction.md).

# set\_auction

An entrypoint that setups a new **Auction** contract (see [Auction](/smart-contracts/dex-2.0/auction-contract.md)).

### Call parameters

<table><thead><tr><th>Field</th><th width="198.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>auction</td><td>address</td><td>An address of a new <strong>Auction</strong> contract</td></tr></tbody></table>

### Usage

{% tabs %}
{% tab title="🌮 Taquito" %}

```javascript
const dexCoreAddress = "KT1...";
const auctionAddress = "KT1...";
const dexCore = await tezos.contract.at(dexCoreAddress);
const operation = await dexCore.methods.set_auction(auctionAddress).send();

await operation.confirmation();
```

{% endtab %}
{% endtabs %}

### Errors

* `400` - `sender` of the transaction is not current administrator.
* `412` - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
