Adds a new auth descriptor to the account
the auth descriptor information to use when registering the auth descriptor
keystore that should match the pubkey in the first argument. Will be used to sign the transaction
Burns the specified amount of the specified asset from this account
Perform a cross-chain transfer.
Will emit events when the init_transfer
transaction is built,
when init_transfer
transaction is anchored,
and on each hop (containing blockchain RID).
Will resolve when complete_transfer
transaction is confirmed.
Deletes all auth descriptors on this account, except for the main one which cannot be deleted. Requires that the user has instantiated this structure with the keystore that holds the private key for the main auth descriptor.
Deletes the auth descriptor with the the specified id. The auth descriptor in question does not necessarily need to be associated with this account, but the keys stored in this account will be used to sign the operation.
the id of the auth descriptor to delete
Fetches an auth descriptor by its ID.
the id of the auth descriptor to fetch
the auth descriptor in question needs to be associated with this account and if no auth descriptor is found, this method will throw an error
Retrieves all auth descriptors associated with this account
Retrieves all auth descriptors on which the specified signer is also a signer.
the signer whose auth descriptors to retrieve
Retrieves the balance for a specific asset
the balance of the asset on this account, or null
if this account does not have the asset
Retrieves all the balances of all assets that is available on the account and returns them as a paginated entity.
Optional
limit: numbermaximum page size
Optional
cursor: OptionalPageCursorwhere the page should start
Retrieves the most recent pending transfer which matches the specified arguments
the latest pending transfer that matches the criteria. Or null if no such transfer is found
Retrieves the main auth descriptor of this account
Retrieves all pending (i.e., started but not yet completed) cross chain transfers initiated by this account.
Optional
limit: OptionalLimitmaximum page size
Optional
cursor: OptionalPageCursorwhere the page should start
Retrieves the current rate limit for this account. I.e., how many points this account currently has.
Retrieves the full transfer history for this account as a paginated entity.
Optional
limit: numbermaximum page size
Optional
filter: TransferHistoryFiltera filter to determine what type of transfer history entries to fetch
Optional
cursor: OptionalPageCursorwhere the page should start
Retrieves a specific TransferHistoryEntry
the rowid of the TransferHistoryEntry
the requested transfer history entry, or null
if that rowid
does not exist.
Determines whether the auth descriptor with the specified id is valid.
the id of the auth descriptor to check
true or false depending on if the auth descriptor is valid or not
Recalls a cross-chain account creation transfer which was not claimed before timeout.
Will emit event on each hop (containing blockchain RID).
Will resolve when revert_transfer
transaction is confirmed.
The transfer to recall
Returns a transfer that was properly delivered to its destination, but not claimed in time, to this account.
the id of the transaction in which the transfer was made
the index of the operation within the transaction
Resume a cross-chain transfer which was initiated but did not complete properly.
Will emit event on each hop (containing blockchain RID).
Will resolve when complete_transfer
transaction is confirmed.
The transfer to resume
Revert a cross-chain transfer which was initiated but did not complete properly.
Will emit event on each hop (containing blockchain RID).
Will resolve when revert_transfer
transaction is confirmed.
The transfer to revert
Transfers the specified amount of the specified asset from this account to the specified receiver.
Replaces the previous main auth descriptor with a new one which will be created with the provided information.
the auth descriptor information to use for the new auth descriptor
keystore that should match the pubkey in the first argument. Will be used to sign the transaction
This function will throw an error if this AuthenticatedAccount
instance does not have access to the private key of the
current main auth descriptor.
Represents a blockchain account to which the user has at least one signing key that is valid for performing operations. This means that an object of this type can be used to get information about an account and submit authenticated operations.
For a "read-only" account without keys, see Account