v1

latestOpenAPI 3.0.02026-07-267331140.7 KB
Safe Management

Get typed data for adding a Safe Owner

Returns the EIP-712 typed data that needs to be signed by the user's wallet to add a new owner to the Safe. This endpoint is used as part of a three-step process:

  1. Call this endpoint to get the EIP-712 typed data
  2. Sign the typed data with the user's wallet using EIP-712 signature standard
  3. Submit the signature to the POST /api/v1/owners endpoint
get/api/v1/owners/add/transaction-data

Query parameters

newOwnerstring required

The address to add as a new Safe owner.

Response

Successfully retrieved EIP-712 typed data for signing.

Example response

{
  "data": {
    "domain": {
      "verifyingContract": "0x3270bf32AB647e90eF94A026c70Aa1daaaDA2382",
      "chainId": 100
    },
    "primaryType": "ModuleTx",
    "types": {
      "ModuleTx": [
        {
          "type": "bytes",
          "name": "data"
        }
      ]
    },
    "message": {
      "data": "0xa9059cbb0000000000000000000000003270bf32ab647e90ef94a026c70aa1daaaada2382",
      "salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
    }
  }
}