This mutation needs to be called once an NFT has been purchased from the blockchain. Based of this mojito creates an purchase history for an user.
Integration Guidance
Inorder to purchase NFT on the Onchain Dutch Auction, please follow below steps.
- Blockchain
- Should have balance on ETH & have applicable blockchain network
- You can refer the following script from mojito public repository https://github.com/mojitoinc/mojito-contracts-scripts/blob/main/scripts/dutchAuction/buy-by-Eth.ts and complete blockchain transaction on one of the applicable blockchain network.
- Mutation
- Once the blockchain integration is done, you can use the following mutation for updating and registering to mojito backend system.
Sample Mutation
mutation ConfirmDutchAuctionBid($input: ConfirmDutchAuctionBidInput!){
confirmDutchAuctionBid( input: $input)
}
Sample Variable
{
"input": {
"walletAddress": "0xbA76fcAC5D4D926A72E23970935E79718a5D6453",
"quantity": 1,
"lotID": "aaa58ca1-fedb-44e3-9ff9-cdd016c151cb",
"amount": 0.08,
"tax": 0,
"txhash": "0xd041ec8e40646a07e93cb31d7775cbbc681e80c83f2d9db2e74d9799edb8bd1d"
}
}
Sample Response
{
"data": {
"confirmDutchAuctionBid": true
}
}
Arguments
Name | Type | Description |
---|---|---|
ConfirmDutchAuctionBidInput | Object | Contains all information of input ConfirmDutchAuctionBidInput |
Fields
Name | Type | Description |
---|---|---|
confirmDutchAuctionBid | Boolean | If the return is true, this bid is successfully done. |