Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • StackingClient

Index

Constructors

constructor

Properties

address

address: string

network

network: StacksNetwork

Methods

canStack

delegateStackStx

delegateStx

getAccountBalance

  • getAccountBalance(): Promise<BN>

getAccountStatus

  • getAccountStatus(): Promise<any>

getCoreInfo

getCycleDuration

  • getCycleDuration(): Promise<number>

getDelegateOptions

  • getDelegateOptions(__namedParameters: { amountMicroStx: BN; contract: string; delegateTo: string; poxAddress?: string; untilBurnBlockHeight?: number }): ContractCallOptions
  • Parameters

    • __namedParameters: { amountMicroStx: BN; contract: string; delegateTo: string; poxAddress?: string; untilBurnBlockHeight?: number }
      • amountMicroStx: BN
      • contract: string
      • delegateTo: string
      • Optional poxAddress?: string
      • Optional untilBurnBlockHeight?: number

    Returns ContractCallOptions

getDelegateStackOptions

  • getDelegateStackOptions(__namedParameters: { amountMicroStx: BN; burnBlockHeight: number; contract: string; cycles: number; nonce?: BN; poxAddress: string; stacker: string }): ContractCallOptions
  • Parameters

    • __namedParameters: { amountMicroStx: BN; burnBlockHeight: number; contract: string; cycles: number; nonce?: BN; poxAddress: string; stacker: string }
      • amountMicroStx: BN
      • burnBlockHeight: number
      • contract: string
      • cycles: number
      • Optional nonce?: BN
      • poxAddress: string
      • stacker: string

    Returns ContractCallOptions

getPoxInfo

getRevokeDelegateStxOptions

getSecondsUntilNextCycle

  • getSecondsUntilNextCycle(): Promise<number>

getStackAggregationCommitOptions

  • getStackAggregationCommitOptions(__namedParameters: { contract: string; poxAddress: string; rewardCycle: number }): ContractCallOptions

getStackOptions

  • getStackOptions(__namedParameters: { amountMicroStx: BN; burnBlockHeight: number; contract: string; cycles: number; poxAddress: string }): ContractCallOptions
  • Parameters

    • __namedParameters: { amountMicroStx: BN; burnBlockHeight: number; contract: string; cycles: number; poxAddress: string }
      • amountMicroStx: BN
      • burnBlockHeight: number
      • contract: string
      • cycles: number
      • poxAddress: string

    Returns ContractCallOptions

getStatus

getTargetBlockTime

  • getTargetBlockTime(): Promise<number>

hasMinimumStx

  • hasMinimumStx(): Promise<boolean>
  • Check if account has minimum require amount of Stacks for stacking

    Returns Promise<boolean>

    that resolves to a bool if the operation succeeds

isStackingEnabledNextCycle

  • isStackingEnabledNextCycle(): Promise<boolean>
  • Check if stacking is enabled for next reward cycle

    Returns Promise<boolean>

    that resolves to a bool if the operation succeeds

modifyLockTxFee

parseContractId

  • parseContractId(contract: string): string[]
  • Parses a contract identifier and ensures it is formatted correctly

    Parameters

    • contract: string

    Returns string[]

    a contract address and name

revokeDelegateStx

  • As a delegatee, generate and broadcast a transaction to terminate the delegation relationship

    Parameters

    • privateKey: string

      the private key to be used for the revoke call

    Returns Promise<TxBroadcastResult>

    that resolves to a broadcasted txid if the operation succeeds

stack

stackAggregationCommit

Generated using TypeDoc