Adds a new message for a given Safe account.
Message can be:
- A ``string``, so ``EIP191`` will be used to get the hash.
- An ``EIP712`` ``object``.
Hash will be calculated from the provided ``message``. Sending a raw ``hash`` will not be accepted,
service needs to derive it itself.
Note: Safe must be v1.4.1 for EIP-1271 signatures to work.
messages
Safes_Messages_Create is an example object payload from Safe (Gnosis Safe), with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"operationId": "safes_messages_create",
"method": "POST",
"path": "/tx-service/eth/api/v1/safes/{address}/messages/",
"summary": "",
"description": "Adds a new message for a given Safe account.\nMessage can be:\n- A ``string``, so ``EIP191`` will be used to get the hash.\n- An ``EIP712`` ``object``.\n\nHash will be calculated from the provided ``message``. Sending a raw ``hash`` will not be accepted,\nservice needs to derive it itself.\n\nNote: Safe must be v1.4.1 for EIP-1271 signatures to work.",
"tags": [
"messages"
],
"parameters": [
{
"name": "address",
"in": "path",
"required": true,
"description": "",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SafeMessage"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Created",
"content": {}
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.