build_seismic_typed_data
Build eth_signTypedData_v4 payload for TxSeismic
Signature
def build_seismic_typed_data(tx: UnsignedSeismicTx) -> dict[str, Any]Parameters
Parameter
Type
Required
Description
Returns
Type
Description
Output structure
{
"types": {
"EIP712Domain": [
{ "name": "name", "type": "string" },
{ "name": "version", "type": "string" },
{ "name": "chainId", "type": "uint256" },
{ "name": "verifyingContract", "type": "address" }
],
"TxSeismic": [
{ "name": "chainId", "type": "uint64" },
{ "name": "nonce", "type": "uint64" },
{ "name": "gasPrice", "type": "uint128" },
{ "name": "gasLimit", "type": "uint64" },
{ "name": "to", "type": "address" },
{ "name": "value", "type": "uint256" },
{ "name": "input", "type": "bytes" },
{ "name": "encryptionPubkey", "type": "bytes" },
{ "name": "encryptionNonce", "type": "uint96" },
{ "name": "messageVersion", "type": "uint8" },
{ "name": "recentBlockHash", "type": "bytes32" },
{ "name": "expiresAtBlock", "type": "uint64" },
{ "name": "signedRead", "type": "bool" }
]
},
"primaryType": "TxSeismic",
"domain": {
"name": "Seismic Transaction",
"version": "2",
"chainId": 1946,
"verifyingContract": "0x0000000000000000000000000000000000000000"
},
"message": {
"chainId": 1946,
"nonce": 42,
"gasPrice": 20000000000,
"gasLimit": 100000,
"to": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"value": 1000000000000000000,
"input": "0xabcd...",
"encryptionPubkey": "0x02...",
"encryptionNonce": 12345,
"messageVersion": 2,
"recentBlockHash": "0x1234...",
"expiresAtBlock": 12345678,
"signedRead": false
}
}Field encoding
message values
message valuesdomain
domainprimaryType
primaryTypeExample
Notes
Warnings
See Also
Last updated

