Class: MultiSig
Defined in: src/api/entities/Account/MultiSig/index.ts:49
Represents a MultiSig Account. A MultiSig Account is composed of one or more signing Accounts. In order to submit a transaction, a specific amount of those signing Accounts must approve it first
Extends
Properties
address
address:
string
Defined in: src/api/entities/Account/index.ts:110
Polymesh-specific address of the Account. Serves as an identifier
Inherited from
authorizations
authorizations:
Authorizations<Account>
Defined in: src/api/entities/Account/index.ts:119
Inherited from
key
key:
string
Defined in: src/api/entities/Account/index.ts:116
A hex representation of the cryptographic public key of the Account. This is consistent across Substrate chains, while the address depends on the chain as well.
Inherited from
staking
staking:
Staking
Defined in: src/api/entities/Account/index.ts:121
Inherited from
subsidies
subsidies:
Subsidies
Defined in: src/api/entities/Account/index.ts:120
Inherited from
uuid
uuid:
string
Defined in: src/api/entities/Entity.ts:46
Inherited from
Methods
checkPermissions()
checkPermissions(
permissions:SimplePermissions):Promise<CheckPermissionsResult<Account>>
Defined in: src/api/entities/Account/index.ts:395
Check if this Account possesses certain Permissions to act on behalf of its corresponding Identity
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<CheckPermissionsResult<Account>>
which permissions the Account is missing (if any) and the final result
Inherited from
details()
details():
Promise<MultiSigDetails>
Defined in: src/api/entities/Account/MultiSig/index.ts:80
Return details about this MultiSig such as the signing Accounts and the required number of signatures to execute a MultiSigProposal
Returns
Promise<MultiSigDetails>
exists()
exists():
Promise<boolean>
Defined in: src/api/entities/Account/index.ts:478
Determine whether this Account exists on chain
Returns
Promise<boolean>
Inherited from
getAdmin()
getAdmin():
Promise<Identity|null>
Defined in: src/api/entities/Account/MultiSig/index.ts:264
Returns the Identity of the MultiSig admin. This Identity can add or remove signers directly without creating a MultiSigProposal first.
Returns
Promise<Identity | null>
getAssetBalances()
getAssetBalances(
args?:object):Promise<PortfolioBalance[]>
Defined in: src/api/entities/Account/index.ts:684
Retrieve the balances of all fungible assets in this Account
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
| ( | array of FungibleAssets (or tickers) for which to fetch balances (optional, all balances are retrieved if not passed) |
Returns
Promise<PortfolioBalance[]>
Inherited from
getBalance()
Call Signature
getBalance():
Promise<Balance>
Defined in: src/api/entities/Account/index.ts:145
Get the free/locked POLYX balance of the Account
Returns
Promise<Balance>
Promise that resolves to the Account's POLYX balance information
Inherited from
Call Signature
getBalance(
callback:SubCallback<Balance>):Promise<UnsubCallback>
Defined in: src/api/entities/Account/index.ts:156
Get the free/locked POLYX balance of the Account (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| Callback function that receives balance updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
Inherited from
getCollections()
getCollections(
args?:object):Promise<PortfolioCollection[]>
Defined in: src/api/entities/Account/index.ts:764
Retrieve the NFTs held in this Account
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
| ( | array of NftCollection (or tickers) for which to fetch holdings (optional, all holdings are retrieved if not passed) |
Returns
Promise<PortfolioCollection[]>
Inherited from
getCurrentNonce()
getCurrentNonce():
Promise<BigNumber>
Defined in: src/api/entities/Account/index.ts:492
Retrieve the current nonce for this Account
Returns
Promise<BigNumber>
Inherited from
getHistoricalProposals()
getHistoricalProposals(
opts?:object):Promise<ResultSet<HistoricalMultiSigProposal>>
Defined in: src/api/entities/Account/MultiSig/index.ts:198
Return a set of MultiSigProposal for this MultiSig Account
Parameters
| Parameter | Type |
|---|---|
| { |
|
|
|
|
Returns
Promise<ResultSet<HistoricalMultiSigProposal>>
Note
uses the middlewareV2
getIdentity()
getIdentity():
Promise<Identity|null>
Defined in: src/api/entities/Account/index.ts:175
Retrieve the Identity associated to this Account (null if there is none)
Returns
Promise<Identity | null>
Inherited from
getMultiSig()
getMultiSig():
Promise<MultiSig|null>
Defined in: src/api/entities/Account/index.ts:450
Fetch the MultiSig this Account is part of. If this Account is not a signer on any MultiSig, return null
Returns
Promise<MultiSig | null>
Inherited from
getNextAssetId()
getNextAssetId():
Promise<string>
Defined in: src/api/entities/Account/index.ts:637
Returns next assetID that will be generated for this Identity
Returns
Promise<string>
Inherited from
getOffChainReceipts()
getOffChainReceipts():
Promise<BigNumber[]>
Defined in: src/api/entities/Account/index.ts:610
Returns all off chain receipts used by this Account
Returns
Promise<BigNumber[]>
Inherited from
getPayer()
getPayer():
Promise<Identity|null>
Defined in: src/api/entities/Account/MultiSig/index.ts:290
Returns the payer for the MultiSig, if set the primary account of the identity will pay for any fees the MultiSig may incur
Returns
Promise<Identity | null>
getPendingProposals()
getPendingProposals():
Promise<MultiSigProposal[]>
Defined in: src/api/entities/Account/index.ts:594
Returns pending MultiSig proposals for this Account
Returns
Promise<MultiSigProposal[]>
Note
uses the middleware