accs v2

List user accounts.

Changed on

Returns a list of accounts for the given user.

This object represents a user's account, which is a blockchain smart account that can be used to interact with the blockchain.

The accounts are returned sorted by creation date, with the most recently created accounts appearing first.

get/v2/accounts

Request

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

Query parameters

limitinteger

Specifies the maximum number of records to return.

skipinteger

Specifies the offset for the first records to return.

order'asc' | 'desc'

Specifies the order in which to sort the results.

chainIdinteger

The chain ID. Must be a supported chain.

userstring

Specifies the unique user ID (starts with pla_)

chainType'EVM' | 'SVM'

The chain type. Must be either "EVM" or "SVM".

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

Specifies the type of account. Must be either "Smart Account" or "Externally Owned Account".

custody'Developer' | 'User'

Specifies the key custody of the account. Must be either "Developer" or "User".

addressstring

Specifies the account address

Response

Successful response.

object'list' required
urlstring required
startinteger required
endinteger required
totalinteger required

Example response

{
  "data": [
    {
      "custody": "Developer"
    }
  ]
}

Changes

    • info

      the endpoint scheme security auth_token was added to the API

    • info

      the endpoint scheme security better_auth was removed from the API

    • info

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

    • info

      added the new optional query request parameter custody