EVM网络
该文档描述了TokenPocket钱包在EVM网络下的相关二维码协议。TokenPocket Android版本从1.6.7开始支持本协议,EVM网络观察钱包冷钱包交互使用该协议,新版本的应用兼容老版本协议。
签名交易
//
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 //标识操作类型
network //该操作支持的网络
chain_id //网络id
data //交易数据
//签名交易结果
ethereum:signTransactionSignature-version=1.0&protocol=TokenPocket&network=ethereum&chain_id=1&data={
"rawTransaction":"xxxx"
}
签名并发送交易
ethPersonalSign签名
ethSignTypedDataLegacy签名
ethSignTypedData
ethSignTypedData_V4
参考文档
https://github.com/ethereum/EIPs/blob/9e393a79d9937f579acbdcb234a67869259d5a96/EIPS/eip-681.md
Last updated