WalletLogin (signed message)
EIP-712 type WalletLogin: fields, type hash and how each field is built from the request JSON.
On this page
Agent prompt
Write a function that signs a Grvt `WalletLogin` message {using} and checks it against the signing test cases.
Target environment: Testnet (chain ID 326). Recorded signing cases keep their original environment.
Validate new flows on testnet with test funds before using production.
Read this first: {origin}/bundle/reference/signing/WalletLogin.md (~28 KB, plain Markdown: this page plus the AGENTS.md rules, Signing, Environments).
Fetch other pages from the index at {origin}/llms.txt only as you need them. {origin}/downloads/contract.json is a machine-readable contract for tools, not for reading.
Rules: follow AGENTS.md; do not send requests without the user asking you to; read credentials from environment variables; never retry writes automatically; show me the code and how to run it. Signed by login_wallet. Step-by-step walkthrough: Signing.
WalletLogin(address signer,uint32 nonce,int64 expiration)
Type hash 0x4451fb6c92ff3fc4a27d19a1cb3287041a7cacdd394d0988eca8af8549ace29b. Domain {name: "GRVT Exchange", version: "0", chainId}.
Fields and where they come from
| EIP-712 field | Type | From request | Transform |
|---|---|---|---|
signer | address | address | address |
nonce | uint32 | signature.nonce | sig.nonce |
expiration | int64 | signature. | sig.expiration |
domain chainId | uint256 | signature.chain_id | sig.chainId |
Signing test cases
In signing.json, signed by the public test key:
wallet_login— Edge wallet login. address must equal signature.signer. Digest0x1522126e0b0e4534911f1b6f21a6dedad8c88a49c6012937d6101fa155aa6e14.