Skip to main content
PATCH
/
api
/
v1
/
account
/
deploy-safe-modules
Setup Safe with Signature
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    signature: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b'
  })
};

fetch('https://api.valox.co/api/v1/account/deploy-safe-modules', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
"transactionHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"deployed": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
signature
string
required

The EIP-712 signature for the account setup transaction

Response

Successfully executed setup transaction

transactionHash
string

The transaction hash of the executed transaction

deployed
boolean

Whether the account setup is deployed