Skip to main content
type CreateAccountResponse = 
  | EmailAccountResponse
  | SignersAccountResponse;
Union type representing the response from creating an account. The response type depends on the account creation method:

Examples

{
  "type": "email",
  "email": "user@example.com",
  "status": "pending_verification",
  "otp_sent": true,
  "created_at": "2024-01-15T10:30:00Z",
  "expires_at": "2024-01-15T10:35:00Z"
}
{
  "type": "signers",
  "address": "E8PvapS15gYLfN2phWMPn2VuX8RghCMvYLXiBkVfce5j",
  "policies": {
    "signers": [
      {
        "address": "5FHwkrdxntdK24hgQU8qgBjn35Y1zwhz1GZwCkP2UJnM",
        "role": "primary",
        "permissions": ["CAN_INITIATE", "CAN_EXECUTE", "CAN_VOTE"],
        "provider": "external"
      }
    ],
    "threshold": 1,
    "time_lock": null,
    "admin_address": null
  },
  "grid_user_id": "93800846-1df3-4dde-90dc-261d0740cc22"
}
I