This mutation to call to create the dutch auction depends on parameter.
Sample mutation
mutation deployDutchAuction(
$lotID: UUID1!
$deployer: Boolean!
$txHash: String
) {
deployDutchAuction(lotID: $lotID, deployer: $deployer, txHash: $txHash)
}
Sample variable
deploy flow varies depending on the parameter.
- Auction created out of mojito API need to pass parameter
lotID
,deployer
=false
andtxHaxh
- Creating an auction via mojito API needs to pass param
lotID
,deployer
=true
{
"lotID":"cd711230-f9cb-42dd-aa34-bc3b8532c51c",
"deployer":false,
"txHash":"0x9e83385f68149a495a18d18efab1aec89c4a15459346edad35da87cc4ad58c23"
}
Sample response
{
"data": {
"deployDutchAuction": "auction setup properly and active"
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
lotID | UUID | Auction lot id for setup | Yes |
deployer | Boolean | auction setup is already done to pass as false, if not pass as true | Yes |
txHash | String | The auction setup transaction hash is already done out of Mojito API. | No |
Fields
Name | Type | Description |
---|---|---|
deployDutchAuction | String | Confirmation of the auction setup. |