Files
ritmex-bot/docs/nado/developer-resources/api/gateway/signing/q-and-a.md
T

2.1 KiB

Q&A

Q: What is Nado's EIP712 domain?

{
    name: 'Nado',
    version: '0.0.1',
    chainId: chainId,
    verifyingContract: contractAddress
}

{% hint style="info" %} See signing for more details. {% endhint %}

Q: How can i retrieve the verifying contracts to use?

  • Via the contracts query for all executes except place orders.

Q: Which contract should I use for each execute?

  • For place orders: must be computed as address(productId). For example, the verify contract of product 18 is 0x0000000000000000000000000000000000000012.
  • For everything else: use the endpoint contract from the contracts query.

{% hint style="info" %} See the contracts query for more details. {% endhint %}

Q: I am running into signature errors, how to fix?

Signature errors can arise for several reasons:

  • An invalid struct: confirm you are signing the correct struct. See the Signing page to verify the struct of each execute request.
  • An invalid chain id: confirm you have the correct chain id for the network you are on.
  • An invalid verifying contract: confirm you have the correct verifying contract address for the network and execute you are signing. i.e: confirm you are using the correct orderbook address for place orders and endpoint address for everything else.

Q: Is any other signing standard supported?

No, only EIP712.

Q: Are there any examples you can provide?

See examples.

Q: What is the PrimaryType of execute X?

All primary types are listed in our signing page.