# CurrentAccount

Represents the current account that is bound to the SDK instance

## Hierarchy

↳ [Account](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)

↳ **CurrentAccount**

## Index

### Properties

* [address](#address)
* [authorizations](#authorizations)
* [context](#protected-context)
* [key](#key)
* [uuid](#uuid)

### Methods

* [getBalance](#getbalance)
* [getIdentity](#getidentity)
* [getPermissions](#getpermissions)
* [getTransactionHistory](#gettransactionhistory)
* [hasPermissions](#haspermissions)
* [generateUuid](#static-generateuuid)
* [unserialize](#static-unserialize)

## Properties

### address

• **address**: *string*

*Inherited from* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*address*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#address)

*Defined in* [*src/api/entities/Account.ts:45*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Account.ts#L45)

Polymesh-specific address of the account. Serves as an identifier

### authorizations

• **authorizations**: [*Authorizations*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/authorizations)*‹*[*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*›*

*Inherited from* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*authorizations*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#authorizations)

*Defined in* [*src/api/entities/Account.ts:53*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Account.ts#L53)

### `Protected` context

• **context**: [*Context*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/context)

*Inherited from* [*Entity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/entity)*.*[*context*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/entity#protected-context)

*Defined in* [*src/api/entities/Entity.ts:48*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Entity.ts#L48)

### key

• **key**: *string*

*Inherited from* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*key*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#key)

*Defined in* [*src/api/entities/Account.ts:50*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Account.ts#L50)

public key of the account. This is a hex representation of the address that is transversal to any Substrate chain

### uuid

• **uuid**: *string*

*Inherited from* [*Entity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/entity)*.*[*uuid*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/entity#uuid)

*Defined in* [*src/api/entities/Entity.ts:46*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Entity.ts#L46)

## Methods

### getBalance

▸ **getBalance**(): *Promise‹*[*AccountBalance*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/accountbalance)*›*

*Inherited from* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*getBalance*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#getbalance)

*Defined in* [*src/api/entities/Account.ts:73*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Account.ts#L73)

Get the free/locked POLYX balance of the account

**`note`** can be subscribed to

**Returns:** *Promise‹*[*AccountBalance*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/accountbalance)*›*

▸ **getBalance**(`callback`: [SubCallback](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/globals#subcallback)‹[AccountBalance](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/accountbalance)›): *Promise‹*[*UnsubCallback*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/globals#unsubcallback)*›*

*Inherited from* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*getBalance*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#getbalance)

*Defined in* [*src/api/entities/Account.ts:74*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Account.ts#L74)

**Parameters:**

| Name       | Type                                                                                                                                                                                                                          |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `callback` | [SubCallback](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/globals#subcallback)‹[AccountBalance](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/accountbalance)› |

**Returns:** *Promise‹*[*UnsubCallback*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/globals#unsubcallback)*›*

### getIdentity

▸ **getIdentity**(): *Promise‹*[*CurrentIdentity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/currentidentity) *| null›*

*Overrides* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*getIdentity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#getidentity)

*Defined in* [*src/api/entities/CurrentAccount.ts:18*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/CurrentAccount.ts#L18)

Retrieve the current Identity (null if there is none)

**Returns:** *Promise‹*[*CurrentIdentity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/currentidentity) *| null›*

### getPermissions

▸ **getPermissions**(): *Promise‹*[*Permissions*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/permissions)*›*

*Defined in* [*src/api/entities/CurrentAccount.ts:27*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/CurrentAccount.ts#L27)

Retrieve the Permissions this Signer has as a Signing Key for its corresponding Identity

**Returns:** *Promise‹*[*Permissions*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/permissions)*›*

### getTransactionHistory

▸ **getTransactionHistory**(`filters`: object): *Promise‹*[*ResultSet*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/resultset)*‹*[*ExtrinsicData*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/extrinsicdata)*››*

*Inherited from* [*Account*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/account)*.*[*getTransactionHistory*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/account#gettransactionhistory)

*Defined in* [*src/api/entities/Account.ts:124*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Account.ts#L124)

Retrieve a list of transactions signed by this account. Can be filtered using parameters

**`note`** uses the middleware

**Parameters:**

▪`Default value` **filters**: *object*= {}

| Name           | Type                       | Description                                   |
| -------------- | -------------------------- | --------------------------------------------- |
| `blockNumber?` | BigNumber                  | -                                             |
| `orderBy?`     | TransactionOrderByInput    | -                                             |
| `size?`        | undefined \| number        | page size                                     |
| `start?`       | undefined \| number        | page offset                                   |
| `success?`     | undefined \| false \| true | whether the transaction was successful or not |
| `tag?`         | TxTag                      | tag associated with the transaction           |

**Returns:** *Promise‹*[*ResultSet*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/resultset)*‹*[*ExtrinsicData*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/extrinsicdata)*››*

### hasPermissions

▸ **hasPermissions**(`permissions`: [PermissionsLike](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/permissionslike)): *Promise‹boolean›*

*Defined in* [*src/api/entities/CurrentAccount.ts:55*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/CurrentAccount.ts#L55)

Check if this Account possesses certain Permissions for its corresponding Identity

**Parameters:**

| Name          | Type                                                                                                                 |
| ------------- | -------------------------------------------------------------------------------------------------------------------- |
| `permissions` | [PermissionsLike](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/interfaces/permissionslike) |

**Returns:** *Promise‹boolean›*

### `Static` generateUuid

▸ **generateUuid**‹**Identifiers**›(`identifiers`: Identifiers): *string*

*Inherited from* [*Entity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/entity)*.*[*generateUuid*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/entity#static-generateuuid)

*Defined in* [*src/api/entities/Entity.ts:14*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Entity.ts#L14)

Generate the Entity's UUID from its identifying properties

**Type parameters:**

▪ **Identifiers**: *object*

**Parameters:**

| Name          | Type        | Description |
| ------------- | ----------- | ----------- |
| `identifiers` | Identifiers |             |

**Returns:** *string*

### `Static` unserialize

▸ **unserialize**‹**Identifiers**›(`serialized`: string): *Identifiers*

*Inherited from* [*Entity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/classes/entity)*.*[*unserialize*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v4/entity#static-unserialize)

*Defined in* [*src/api/entities/Entity.ts:23*](https://github.com/PolymathNetwork/polymesh-sdk/blob/a0872cf4/src/api/entities/Entity.ts#L23)

Unserialize a UUID into its Unique Identifiers

**Type parameters:**

▪ **Identifiers**: *object*

**Parameters:**

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| `serialized` | string | UUID to unserialize |

**Returns:** *Identifiers*
