Polymesh SDK API Reference
v8.0.0
v8.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • Agent
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • Context
    • CorporateAction
    • CorporateActions
    • Count
    • CurrentAccount
    • CurrentIdentity
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AffirmationStatus
    • AuthorizationType
    • CalendarUnit
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CorporateActionKind
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • PermissionGroupType
    • PermissionType
    • ProposalStage
    • RoleType
    • ScopeType
    • SignerType
    • StoBalanceStatus
    • StoSaleStatus
    • StoTimingStatus
    • TargetTreatment
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferError
    • TransferRestrictionType
    • TransferStatus
    • TxGroup
    • VenueType
  • Interfaces
    • ActiveTransferRestrictions
    • AddBatchTransactionOpts
    • AddClaimsParams
    • AddInstructionParams
    • AddInstructionsParams
    • AddInvestorUniquenessClaimParams
    • AddPairBaseParams
    • AddTransactionOpts
    • AddTransactionOptsBase
    • AgentWithGroup
    • ArrayTransactionArgument
    • Balance
    • CalendarPeriod
    • CddProviderRole
    • CheckpointWithData
    • ClaimClassicTickerParams
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • ControllerTransferParams
    • CorporateActionDefaults
    • CorporateActionTargets
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateCheckpointScheduleParams
    • CreateGroupParams
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • DistributionParticipant
    • DistributionPayment
    • DistributionWithDetails
    • DividendDistributionDetails
    • DividendDistributionParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • GroupedInstructions
    • HistoricSettlement
    • HumanReadable
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • InvestInStoParams
    • Investment
    • InviteAccountParams
    • InviteExternalAgentParams
    • IssueTokensParams
    • KeyringPair
    • LeaveIdentityParams
    • Leg
    • LinkCaDocsParams
    • MiddlewareConfig
    • ModifyCorporateActionsAgentParams
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PayDividendsParams
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • ProcedureMethod
    • ProcedureOpts
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RedeemTokenParams
    • RegisterIdentityParams
    • RemoveCheckpointScheduleParams
    • RemoveCorporateActionParams
    • RemoveExternalAgentParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • ScheduleDetails
    • ScheduleWithDetails
    • Scope
    • SecondaryKey
    • SectionPermissions
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCountTransferRestrictionsParams
    • SetCustodianParams
    • SetPercentageTransferRestrictionsParams
    • SetTokenDocumentsParams
    • SettlementLeg
    • SignerValue
    • SimpleEnumTransactionArgument
    • SimplePermissions
    • StoDetails
    • StoStatus
    • StoTier
    • StoWithDetails
    • TaxWithholding
    • TickerOwnerRole
    • TickerReservationDetails
    • Tier
    • ToggleFreezeSecondaryKeysParams
    • ToggleFreezeStoParams
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenDocument
    • TokenIdentifier
    • TransactionPermissions
    • TransferBreakdown
    • TransferPolyxParams
    • TransferRestriction
    • TransferRestrictionInputBase
    • TransferRestrictionResult
    • TransferTickerOwnershipParams
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Type parameters
  • Hierarchy
  • Index
  • Properties
  • Accessors
  • Methods
  • Properties
  • Optional blockHash
  • Protected context
  • Optional error
  • isCritical
  • paidByThirdParty
  • Optional receipt
  • status
  • Optional txHash
  • Accessors
  • args
  • tag
  • Methods
  • getFees
  • onStatusChange
  • run

Was this helpful?

  1. Classes

PolymeshTransactionBatch

Wrapper class for a batch of Polymesh Transactions

Type parameters

▪ Args: unknown[]

▪ Values: unknown[]

Hierarchy

  • PolymeshTransactionBase‹Args, Values›

    ↳ PolymeshTransactionBatch

Index

Properties

  • blockHash

  • context

  • error

  • isCritical

  • paidByThirdParty

  • receipt

  • status

  • txHash

Accessors

  • args

  • tag

Methods

  • getFees

  • onStatusChange

  • run

Properties

Optional blockHash

• blockHash? : undefined | string

Inherited from PolymeshTransactionBase.blockHash

Defined in src/base/PolymeshTransactionBase.ts:55

hash of the block where this transaction resides (status: Succeeded, Failed)

Protected context

• context: Context

Inherited from PolymeshTransactionBase.context

Defined in src/base/PolymeshTransactionBase.ts:119

Optional error

• error? : PolymeshError

Inherited from PolymeshTransactionBase.error

Defined in src/base/PolymeshTransactionBase.ts:40

stores errors thrown while running the transaction (status: Failed, Aborted)

isCritical

• isCritical: boolean

Inherited from PolymeshTransactionBase.isCritical

Defined in src/base/PolymeshTransactionBase.ts:60

whether this tx failing makes the entire tx queue fail or not

paidByThirdParty

• paidByThirdParty: boolean

Inherited from PolymeshTransactionBase.paidByThirdParty

Defined in src/base/PolymeshTransactionBase.ts:66

whether the fees for this tx are paid by a third party. For example, when accepting/rejecting a request to join an Identity, fees are paid by the Identity that sent the request

Optional receipt

• receipt? : ISubmittableResult

Inherited from PolymeshTransactionBase.receipt

Defined in src/base/PolymeshTransactionBase.ts:45

stores the transaction receipt (if successful)

status

• status: TransactionStatus = TransactionStatus.Idle

Inherited from PolymeshTransactionBase.status

Defined in src/base/PolymeshTransactionBase.ts:35

current status of the transaction

Optional txHash

• txHash? : undefined | string

Inherited from PolymeshTransactionBase.txHash

Defined in src/base/PolymeshTransactionBase.ts:50

transaction hash (status: Running, Succeeded, Failed)

Accessors

args

• get args(): Args[]

Defined in src/base/PolymeshTransactionBatch.ts:48

Arguments for each transaction in the batch

Returns: Args[]

tag

• get tag(): TxTag

Inherited from PolymeshTransactionBase.tag

Defined in src/base/PolymeshTransactionBase.ts:314

type of transaction represented by this instance for display purposes. If the transaction isn't defined at design time, the tag won't be set (will be empty string) until the transaction is about to be run

Returns: TxTag

Methods

getFees

▸ getFees(): Promise‹Fees | null›

Inherited from PolymeshTransactionBase.getFees

Defined in src/base/PolymeshTransactionBase.ts:281

Get all (protocol and gas) fees associated with this transaction. Returns null if the transaction is not ready yet (this can happen if it depends on the execution of a previous transaction in the queue)

Returns: Promise‹Fees | null›

onStatusChange

▸ onStatusChange(listener: function): function

Inherited from PolymeshTransactionBase.onStatusChange

Defined in src/base/PolymeshTransactionBase.ts:268

Subscribe to status changes

Parameters:

▪ listener: function

callback function that will be called whenever the status changes

▸ (transaction: this): void

Parameters:

Name

Type

transaction

this

Returns: function

unsubscribe function

▸ (): void

run

▸ run(): Promise‹void›

Inherited from PolymeshTransactionBase.run

Defined in src/base/PolymeshTransactionBase.ts:153

Run the poly transaction and update the transaction status

Returns: Promise‹void›

PreviousPolymeshTransactionBaseNextPortfolio

Last updated 3 years ago

Was this helpful?