Create or Deploy a Safe (pending Setup)
This endpoint serves two purposes - it first checks if a Safe account exists for the user. If no account exists, it creates one and initiates deployment. If an account already exists but is not deployed, it initiates the deployment process.
This endpoint can be called immediately after user signup as there are no restrictions or prerequisites.
When deploying a new Safe, the endpoint waits for transaction execution and confirmation on-chain. Because of this, the request may take up to 10 seconds to complete when a deployment is needed.
The deployment process is handled by a sponsored transaction on the ValoX Chain, and the response includes the transaction hash for tracking the deployment status.
Next steps after successful deployment is to setup the Safe:
- Once this endpoint successfully creates and deploys a Safe account, the user should call
the
/api/v1/safe/set-currencyendpoint to set the currency for the account. - Note that the
/api/v1/safe/set-currencyendpoint requires the user to have completed the KYC process successfully. - Then, the user should call the
/api/v1/account/signature-payloadendpoint to get the signature data for the account setup. - Finally, the user should call the
/api/v1/account/deploy-safe-modulesendpoint to deploy the Safe modules with the user’s signature.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The ID of chain (currently only supports ValoX Chain)
100 Response
Successfully created or checked Safe account
The Safe account ID
The Safe account address
ID of the user owning this Safe
ID of the blockchain
Salt used for Safe address generation
Timestamp of when the Safe was created
Whether the Safe is deployed on-chain
Transaction hash of the deployment transaction (if completed)

