Developers

VaultBurnLpToken (signed message)

EIP-712 type VaultBurnLpToken: fields, type hash and how each field is built from the request JSON.

On this page

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 fieldTypeFrom requestTransform
vaultIDuint64vault_idcopy
numLpTokensuint64num_tokensscaled: decimal × 10^6
accountIDaddressnone: result.main_account_id of funding_account_summarymainAccount: your main account address, fetched once per session
nonceuint32signature.noncesig.nonce
expirationint64signature.expirationsig.expiration
domain chainIduint256signature.chain_idsig.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. Digest 0x1dcd849d0fbe437101afc1f2e1976430a2d21dfc6253d55c34e7b28849359477.
Sign the example in your browser
esc

↑ ↓ move↵ open⇧↵ open .mdTry an error code like 2002

Keyboard shortcuts

⌘ K
Search the docs
/
Search
l
Next code language (Python → TypeScript → Go → Rust → curl → WebSocket)
j / k
Next / previous page
t
Light / dark theme
?
This help
Esc
Close dialogs and drawers