submitProofOfOffer

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!
  $buyerAddress: String
  $currency: CurrencyCodeFiat
) {
  submitProofOfOffer(
    orderId: $orderId, 
    orgId: $orgId,
    signature: $signature,
    buyerAddress: $buyerAddress
		currency: $currency
  )
}

Sample variable

{
  "orgId": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
  "orderId": "c960711f-4478-4048-aadb-61aab3426be0",
  "signature": "0x67acb56cc9c980e61c0af7df42278fd66e3f1e08a2729a58a19ae8170fec22d259f0dcd694a001c4b42b4e97e3ead302baf280a6f7419d2b7f8fe1e62a2723831b"
}

Sample response

{
  "data": {
    "submitProofOfOffer": "Signature updated."
  }
}

Arguments

NameTypeDescriptionRequired
orgIdUUIDThe organization id.Yes
orderIdUUIDUpdate signature against the order id.Yes
signatureStringMetamask signed messageYes
buyerAddressStringUser buyer addressNo
currencyEnumFiat currency like USD or EURNO

Fields

NameTypeDescription
submitProofOfOfferStringUpdate the signature against the order and return a success message.

Examples

Update the signature against the order.