submitProofOfApproval

Once a metamask transaction is confirmed by signature, submitProofOfApproval mutation is called to complete the listing process to update the signature and platform fees.

Sample mutation

mutation submitProofOfApproval(
  $orgID: UUID1!
  $nftTokenId: UUID1!
  $signature: String!
  $quantity: Int
  $fixedPrice: Float
  $paymentToken: String
  $currencyId: UUID1
  $creatorFee: Float
) {
  submitProofOfApproval(
    orgID: $orgID
    nftTokenId: $nftTokenId
    signature: $signature
    quantity: $quantity
    fixedPrice: $fixedPrice
    paymentToken: $paymentToken
    currencyId: $currencyId
    creatorFee: $creatorFee
  )
}

Sample variable

{
  "orgID": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
  "nftTokenId": "a3f42a21-c47a-45ea-a115-e209bb51b56e",
  "signature": "0x44c9ba9372ffe49790e74710b4399e5ecdce0405b64751fc92c64b5f4c0516276cf1e1e7d93a421df523ca2fa5f71ec9103a1b4eb26783e40fa2a74acc5cfd221c",
  "quantity": 1,
  "fixedPrice": "0.04",
  "paymentToken": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
  "currencyId": "c41db347-0ee3-4212-563a-ca213b8e0ea8",
  "creatorFee": 0
}

Sample response

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

Arguments

NameTypeDescriptionRequired
orgIDUUIDThe organization id.Yes
nftTokenIdUUIDNft token id.Yes
signatureStringSignature from the metamaskYes
quantityIntegerQuantity of NFTYes
fixedPriceFloatListing amountYes
paymentTokenStringCurrency contractAddressYes
currencyIdUUIDCurrency id like ETH or WETHYes
creatorFeeFloatCreator fee of the NFT to updateYes

Fields

NameTypeDescription
submitProofOfApprovalStringListing done we are updating the signature of the listing process and returning the success message.

Examples

Update the signature against the order. token owner only need to proceed.