Once metamask transaction is confirmed, submitProofOfOffer mutation is called to submit an offer to the NFT holder for acceptance. This method will save the signature which will be used while accepting the offer and generating the respective emails.
Sample mutation
mutation submitProofOfOffer(
$orderId: UUID1!
$orgId: UUID1!
$signature: String!
) {
submitProofOfOffer(orderId: $orderId, orgId: $orgId, signature: $signature)
}
Sample variable
{
"orgId": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
"orderId": "c960711f-4478-4048-aadb-61aab3426be0",
"signature": "0x67acb56cc9c980e61c0af7df42278fd66e3f1e08a2729a58a19ae8170fec22d259f0dcd694a001c4b42b4e97e3ead302baf280a6f7419d2b7f8fe1e62a2723831b"
}
Sample response
{
"data": {
"submitProofOfOffer": "Signature updated."
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
orgId | UUID | The organization id. | Yes |
orderId | UUID | Update signature against the order id. | Yes |
signature | String | Metamask signed message | Yes |
Fields
Name | Type | Description |
---|---|---|
submitProofOfOffer | String | Update the signature against the order and return a success message. |
Examples
Update the signature against the order.