Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

accountEndpoint

accountEndpoint: string = '/v2/accounts'

bnsLookupUrl

bnsLookupUrl: string = 'https://stacks-node-api.mainnet.stacks.co'

broadcastEndpoint

broadcastEndpoint: string = '/v2/transactions'

chainId

chainId: ChainID = ...

contractAbiEndpoint

contractAbiEndpoint: string = '/v2/contracts/interface'

Readonly coreApiUrl

coreApiUrl: string

readOnlyFunctionCallEndpoint

readOnlyFunctionCallEndpoint: string = '/v2/contracts/call-read'

transactionFeeEstimateEndpoint

transactionFeeEstimateEndpoint: string = '/v2/fees/transaction'

transferFeeEstimateEndpoint

transferFeeEstimateEndpoint: string = '/v2/fees/transfer'

version

version: TransactionVersion = ...

Methods

getAbiApiUrl

  • getAbiApiUrl(address: string, contract: string): string
  • Parameters

    • address: string
    • contract: string

    Returns string

getAccountApiUrl

  • getAccountApiUrl(address: string): string
  • Parameters

    • address: string

    Returns string

getBlockTimeInfoUrl

  • getBlockTimeInfoUrl(): string
  • Returns string

getBroadcastApiUrl

  • getBroadcastApiUrl(): string
  • Returns string

getInfoUrl

  • getInfoUrl(): string
  • Returns string

getNameInfo

  • getNameInfo(fullyQualifiedName: string): Promise<any>
  • Parameters

    • fullyQualifiedName: string

    Returns Promise<any>

getPoxInfoUrl

  • getPoxInfoUrl(): string
  • Returns string

getReadOnlyFunctionCallApiUrl

  • getReadOnlyFunctionCallApiUrl(contractAddress: string, contractName: string, functionName: string): string
  • Parameters

    • contractAddress: string
    • contractName: string
    • functionName: string

    Returns string

getRewardHoldersUrl

  • getRewardHoldersUrl(address: string, options?: any): string
  • Parameters

    • address: string
    • Optional options: any

    Returns string

getRewardsTotalUrl

  • getRewardsTotalUrl(address: string): string
  • Parameters

    • address: string

    Returns string

getRewardsUrl

  • getRewardsUrl(address: string, options?: any): string
  • Parameters

    • address: string
    • Optional options: any

    Returns string

getStackerInfoUrl

  • getStackerInfoUrl(contractAddress: string, contractName: string): string
  • Parameters

    • contractAddress: string
    • contractName: string

    Returns string

getTransactionFeeEstimateApiUrl

  • getTransactionFeeEstimateApiUrl(): string
  • Returns string

getTransferFeeEstimateApiUrl

  • getTransferFeeEstimateApiUrl(): string
  • Returns string

isMainnet

  • isMainnet(): boolean
  • Returns boolean

Static fromName

  • Parameters

    • networkName: "mainnet" | "testnet"

    Returns StacksNetwork

Static fromNameOrNetwork

Generated using TypeDoc