Create zkLogin nonce

Generates a nonce used in the zkLogin OAuth flow. Using this API is not required, you can also construct a nonce client-side if desired.

post/v1/zklogin/nonce

Request

  • Base URL
    http://api.enoki.mystenlabs.com
  • Auth
    HTTP bearer

Request body

network'testnet' | 'mainnet' | 'devnet'

The Sui network you wish to use. Defaults to mainnet.

ephemeralPublicKeystring required

The ephemeral public key created during the zkLogin process, encoded as a base64 string.

additionalEpochsnumber

The amount of epochs that you would like to have the nonce be valid for.

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.