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:
/api/v1/safe/set-currency endpoint to set the currency for the account./api/v1/safe/set-currency endpoint requires the user to have completed
the KYC process successfully./api/v1/account/signature-payload endpoint to get the signature data for the account setup./api/v1/account/deploy-safe-modules endpoint to deploy the Safe modules with the user’s signature.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of chain (currently only supports ValoX Chain)
100 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)