Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AccountsApi

Index

Constructors

  • new AccountsApi(configuration: Configuration, requestFactory?: AccountsApiRequestFactory, responseProcessor?: AccountsApiResponseProcessor): AccountsApi

Properties

api: ObservableAccountsApi

Methods

  • Creates a new blockchain account for the provided player. If not player is provided, a new one will be created. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains. Each player can only have one account per chain. Create an account object.

    Parameters

    Returns Promise<AccountResponse>

  • Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information. Returns the latest 10 transaction intents created by this account. Get existing account.

    Parameters

    Returns Promise<AccountResponse>

  • Returns a list of accounts for the given player. This object represents a player'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. Returns the latest 10 transaction intents for each account. By default, a maximum of 10 accounts are shown per page. List accounts of a player.

    Parameters

    • player: string

      Specifies the unique player ID (starts with pla_)

    • Optional limit: number

      Specifies the maximum number of records to return.

    • Optional skip: number

      Specifies the offset for the first records to return.

    • Optional order: SortOrder

      Specifies the order in which to sort the results.

    • Optional expand: AccountResponseExpandable[]

      Specifies the fields to expand in the response.

    • Optional _options: Configuration

    Returns Promise<AccountListResponse>

  • Perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling acceptOwnership() in the smart contract account. Request transfer ownership of account.

    Parameters

    Returns Promise<TransactionIntentResponse>

  • Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not. Sync account state with the blockchain

    Parameters

    • id: string

      Specifies the unique account ID (starts with acc_).

    • Optional _options: Configuration

    Returns Promise<AccountResponse>

Generated using TypeDoc