sign
1 min
POST
{{ENVIRONMENT}}
Content-Typestring
bodystring
200
curl --request POST \
--url {{ENVIRONMENT}} \
--header 'accept: application/json'The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).
By adding a prefix to the message makes the calculated signature recognisable as an Ethereum specific signature. This prevents misuse where a malicious DApp can sign arbitrary data (e.g. transaction) and use the signature to impersonate the victim.
Note: the address to sign with must be unlocked.
Parameters
account, message
DATA, 20 Bytes - address
DATA, N Bytes - message to sign
Returns
DATA: Signature
curl --request POST \
--url {{ENVIRONMENT}} \
--header 'accept: application/json'