We need to implement the /register endpoint in the Vault backend. This endpoint is responsible for temporarily registering a new user. It will then wait for the user to confirm the phone number and deploy their account contract.
Details
Method: POST
Path: /register
Summary: Register a phone number and a StarkNet address that will need to be activated by validating the phone number and deploying the contract.
Issue: Implement /register Endpoint
Description
We need to implement the /register endpoint in the Vault backend. This endpoint is responsible for temporarily registering a new user. It will then wait for the user to confirm the phone number and deploy their account contract.
Details
Request Body:
Response:
Validation:
^\+[1-9]\d{1,14}$
.^0x0[0-9a-fA-F]{63}$
.Notes:
Upon successful registration, a contract will be deployed based on the provided information.
Example
Tasks: