getSignatureMessage

To validate the wallet address and network are supported by the organization. It returns the message for generate the signature from metamask.

Sample query

query ($orgID: UUID1!, $walletAddress: String!, $networkID: UUID1!) {
  getSignatureMessage(
    orgID: $orgID
    walletAddress: $walletAddress
    networkID: $networkID
  )
}

Sample variable

{
  "orgID": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
  "walletAddress": "0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4",
  "networkID": "c41db347-0ee3-4212-943a-ca213b8e0ea8"
}

Sample response

{
  "data": {
    "getSignatureMessage": "This message is used for signature validation for organization whiskey-exchange and wallet address 0xa77915a574e1f9b88db152525ceBfEAA8c71bAa4 at 2023-04-18T07:37:00Z"
  }
}

Arguments

NameTypeDescriptionRequired
orgIDUUIDThe organization ID.Yes
walletAddressStringUser metamask connected wallet addressYes
networkiDUUIDThe network IDYes

Field

NameTypeDescription
N/AStringThe signature message. Contains the organization name and a timestamp.

Example

Load the signature message by the organization ID, wallet Address and network: