curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sign",
"params": [
"0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826",
"0x5363686f6f6c627573"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb1092cb5b23c2aa55e5b5787729c6be812509376de99a52bea2b41e5a5f8601c5641e74d01e4493c17bf1ef8b179c49362b2c721222128d58422a5..."
}
The sign method calculates an Ethereum specific signature with: sign(keccak256(“Ethereum Signed Message: ” + len(message) + message))).
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sign",
"params": [
"0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826",
"0x5363686f6f6c627573"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb1092cb5b23c2aa55e5b5787729c6be812509376de99a52bea2b41e5a5f8601c5641e74d01e4493c17bf1ef8b179c49362b2c721222128d58422a5..."
}
eth_sign:params[0]: The address.params[1]: Data which hash to sign.“0xb1092cb5b23c2aa55e5b5787729c6be812509376de99a52bea2b41e5a5f8601c5641e74d01e4493c17bf1ef8b179c49362b2c721222128d58422a539310c6ecd1b”.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sign",
"params": [
"0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826",
"0x5363686f6f6c627573"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb1092cb5b23c2aa55e5b5787729c6be812509376de99a52bea2b41e5a5f8601c5641e74d01e4493c17bf1ef8b179c49362b2c721222128d58422a5..."
}
Was this page helpful?