GET
/
api
/
v1
/
owners
/
add
/
transaction-data
Get typed data for adding a new Safe owner
const url = 'https://api.gnosispay.com/api/v1/owners/add/transaction-data';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "data": {
    "domain": {
      "verifyingContract": "0x3270bf32AB647e90eF94A026c70Aa1daaaDA2382",
      "chainId": 100
    },
    "primaryType": "ModuleTx",
    "types": {
      "ModuleTx": [
        {
          "type": "bytes",
          "name": "data"
        }
      ]
    },
    "message": {
      "data": "0xa9059cbb0000000000000000000000003270bf32ab647e90ef94a026c70aa1daaaada2382",
      "salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

newOwner
string
required

The address to add as a new Safe owner.

Response

200
application/json

Successfully retrieved EIP-712 typed data for signing.

The response is of type object.