Developers

TransferV3 (signed message)

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

On this page

Signed by transfer. Step-by-step walkthrough: Signing.

TransferV3(address fromAccount,uint64 fromSubAccount,address toAccount,uint64 toSubAccount,uint16 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration,uint8 fromWalletType,uint8 toWalletType)

Type hash 0xe4b142f35f6fa4dda9a3c282f42523d90ccd69b40e130b4207aa644826d8a9e6. Domain {name: "GRVT Exchange", version: "0", chainId}.

Fields and where they come from

EIP-712 fieldTypeFrom requestTransform
fromAccountaddressfrom_account_idaddress
fromSubAccountuint64from_sub_account_idcopy; absent = 0
toAccountaddressto_account_idaddress
toSubAccountuint64to_sub_account_idcopy; absent = 0
tokenCurrencyuint16currencycurrencyId: id of the currency (get_currency)
numTokensuint64num_tokensscaled: decimal × 10^balance_decimals of the currency
nonceuint32signature.noncesig.nonce
expirationint64signature.expirationsig.expiration
fromWalletTypeuint8from_wallet_typeenumCode: integer value of WalletType
toWalletTypeuint8to_wallet_typeenumCode: integer value of WalletType
domain chainIduint256signature.chain_idsig.chainId

Signing test cases

In signing.json, signed by the public test key:

  • transfer_wide_currency — Currency id 300 (> 255, test-only currency) with wallet types, so TransferV3. Digest 0xe3840019d1d63515d0900b95f816efee8aa6054d582e9caf5a723305748fbc44.
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