For the complete documentation index, see llms.txt. This page is also available as Markdown.

EVM network

This document show evm network qrcode protocol in TokenPocket. The TokenPocket Android version supports this protocol from 1.6.7, and EVM network watch-wallet uses this protocol interact with cold wallet, also the new version of the app will compatible with old version qrcode protocol.

Sign transaction

ethereum:signTransaction-version=1.0&protocol=TokenPocket&network=ethereum
&chain_id=1&data=
    {
    	"from": "xxx",
    	"gas": "0x5208",
    	"chainId": 1,
    	"to": "xxx",
    	"value": "0x38d7ea4c68000",
    	"type": "0x2",
    	"maxFeePerGas": "0x11853fe080",
    	"maxPriorityFeePerGas": "0x4a817c80",
    	"nonce": "0x0"
    }


ethereum:signTransaction //action there is sign evm transaction
data //transaction data

//sign transaction result
ethereum:signTransactionSignature-version=1.0&protocol=TokenPocket&network=ethereum&chain_id=1&data={
	"rawTransaction":"xxxx"
 }

Sign and send transaction

ethPersonalSign

ethSignTypedDataLegacy

ethSignTypedData

ethSignTypedData_V4

Normative References

https://github.com/ethereum/EIPs/blob/9e393a79d9937f579acbdcb234a67869259d5a96/EIPS/eip-681.md

Last updated