VaultBurnLpToken (signed message)
EIP-712 type VaultBurnLpToken: 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 `VaultBurnLpToken` 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/VaultBurnLpToken.md (~29 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 vault_burn_tokens. Step-by-step walkthrough: Signing.
VaultBurnLpToken(uint64 vaultID,uint64 numLpTokens,address accountID,uint32 nonce,int64 expiration)
Type hash 0xbb9031c385869393ec7675231ae0f5561aafeebcb9530abf72b88b7c848ab64e. Domain {name: "GRVT Exchange", version: "0", chainId}.
Fields and where they come from
| EIP-712 field | Type | From request | Transform |
|---|---|---|---|
vaultID | uint64 | vault_id | copy |
numLpTokens | uint64 | num_tokens | scaled: decimal × 10^6 |
accountID | address | none: result. of funding_account_summary | mainAccount: your main account address, fetched once per session |
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:
vault_burn_tokens— A vault manager burns 100.5 shares (6 decimals). accountID is the session's main account; currency is not signed. Digest0x1dcd849d0fbe437101afc1f2e1976430a2d21dfc6253d55c34e7b28849359477.