accs v2

Create new account.

Changed on

Creates a new blockchain account for a user.

Account creation does not consume any gas. The account can be used to interact with the blockchain.

post/v2/accounts

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v2/accounts
  • Auth: HTTP bearer

Request body

accountType'Externally Owned Account' | 'Smart Account' | 'Delegated Account' required

The type of smart account that will be created. "Externally Owned Account", "Smart Account" or "Delegated Account".

chainType'EVM' | 'SVM' required

The chain type. "EVM" or "SVM".

addressstring
implementationTypestring

The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, Calibur). Defaults to UpgradeableV6 in mainnets.

chainIdinteger

The chain ID. Must be a supported chain.

userstring required

ID of the user this account belongs to (starts with usr_). Also might take wallet ID (starts with pla_)

accountstring

ID of the account (starts with acc_) to be linked with. Required for accountType "Smart Account".

Example request

{
  "accountType": "Externally Owned Account",
  "chainType": "EVM",
  "implementationType": "UpgradeableV6",
  "chainId": 80002,
  "user": "usr_e0b84653-1741-4a3d-9e91-2b0fd2942f60",
  "account": "acc_e0b84653-1741-4a3d-9e91-2b0fd2942f60"
}

Response

Successful response.

idstring required
walletstring required
accountTypestring required
addressstring required
ownerAddressstring
chainTypestring required
chainIdnumber double
createdAtnumber double required
updatedAtnumber double required
recoveryMethodstring
custody'Developer' | 'User' required

Indicates key custody: "Developer" for TEE managed keys, "User" for user-managed keys.

Example response

{
  "custody": "Developer"
}

Changes

    • info

      the security scope accounts:write was added to the endpoint's security scheme sk

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status