EVM Compatible Chains
V4 (EIP-712)
{
"domain": {
"chainId": "5",
"name": "Ether Mail",
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
"version": "1"
},
"message": {
"contents": "Hello, Bob!",
"from": {
"name": "Cow",
"wallets": [
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
]
},
"to": [
{
"name": "Bob",
"wallets": [
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57",
"0xB0B0b0b0b0b0B000000000000000000000000000"
]
}
]
},
"primaryType": "Mail",
"types": {
"EIP712Domain": [
{"name": "name", "type": "string"},
{"name": "version", "type": "string"},
{"name": "chainId", "type": "uint256"},
{"name": "verifyingContract", "type": "address"}
],
"Group": [
{"name": "name", "type": "string"},
{"name": "members", "type": "Person[]"}
],
"Mail": [
{"name": "from", "type": "Person"},
{"name": "to", "type": "Person[]"},
{"name": "contents", "type": "string"}
],
"Person": [
{"name": "name", "type": "string"},
{"name": "wallets", "type": "address[]"}
]
}
}
personalSign
{
"message": "0x2ca3vaa3....."
}
BTC Chain
signMessage
{
"text": "hello world~"
}
signPsbt / signPsbts
[
{
"id": 1,
"options": {
"auto_finalized": false,
"to_sign_inputs": [
{
"index": 0,
"address": null,
"public_key": "03b7d09ec077ecdd4dd50c21d68637f0f2bc8f32e8973a7456924308eeba4ecf13",
"sighash_types": null,
"disable_tweak_signer": false
}
]
},
"rawtx": null,
"dapp": "https://stake2.dev.btcs.network/my-staking#btc",
"psbt_hex": "70736274ff010052020000000160aa1a9123351f1a74ba04f861693c0d894cb299ada7170844a3fae53b1643e90000000000feffffff01a5b40d0000000000160014c3fcec007e97b22d72859fb900f8aafe87d676a6d31736670001012b40420f0000000000220020bc30954e24a0f54e027f0d9d8203b1e8304873ce40dfb9eda40e28e8f6bbf20401052004d3173667b17576a914c3fcec007e97b22d72859fb900f8aafe87d676a688ac0000",
"signed_psbt_hex": null
}
]
Cosmos-Based Chains
signAmino
{
"account_number": "123",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [{ "denom": "uatom", "amount": "1000" }],
"gas": "200000"
},
"memo": "Test transaction",
"msgs": [
{
"type": "cosmos-sdk/MsgSend",
"value": {
"from_address": "cosmos1...",
"to_address": "cosmos1...",
"amount": [{ "denom": "uatom", "amount": "1000000" }]
}
}
],
"sequence": "42"
}
signDirect
{
"body": {
"messages": [
{
"@type": "/cosmos.bank.v1beta1.MsgSend",
"from_address": "cosmos1...",
"to_address": "cosmos1...",
"amount": [{ "denom": "uatom", "amount": "1000000" }]
}
],
"memo": "Test transaction",
"timeout_height": "0",
"extension_options": [],
"non_critical_extension_options": []
},
"auth_info": {
"signer_infos": [
{
"public_key": { "@type": "/cosmos.crypto.secp256k1.PubKey", "key": "A3..." },
"mode_info": { "single": { "mode": "SIGN_MODE_DIRECT" } },
"sequence": "42"
}
],
"fee": {
"amount": [{ "denom": "uatom", "amount": "1000" }],
"gas_limit": "200000",
"payer": "",
"granter": ""
}
},
"chain_id": "cosmoshub-4",
"account_number": "123"
}
signArbitrary
{
"chain_id": "cosmoshub-4",
"account_number": "123",
"sequence": "42",
"fee": {
"amount": [],
"gas": "0"
},
"msgs": [
{
"type": "sign/MsgSignData",
"value": {
"signer": "cosmos1...",
"data": "VGhpcyBpcyBhIHRlc3QgbWVzc2FnZQ=="
}
}
],
"memo": ""
}