Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StacksNetwork

Hierarchy

Index

Constructors

Properties

accountEndpoint: string = '/v2/accounts'
bnsLookupUrl: string = 'https://stacks-node-api.mainnet.stacks.co'
broadcastEndpoint: string = '/v2/transactions'
chainId: ChainID = ChainID.Mainnet
contractAbiEndpoint: string = '/v2/contracts/interface'
coreApiUrl: string
fetchFn: FetchFn
readOnlyFunctionCallEndpoint: string = '/v2/contracts/call-read'
transactionFeeEstimateEndpoint: string = '/v2/fees/transaction'
transferFeeEstimateEndpoint: string = '/v2/fees/transfer'
version: TransactionVersion = TransactionVersion.Mainnet

Methods

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

    • address: string
    • contract: string

    Returns string

  • getAccountApiUrl(address: string): string
  • Parameters

    • address: string

    Returns string

  • getBlockTimeInfoUrl(): string
  • Returns string

  • getBroadcastApiUrl(): string
  • Returns string

  • getInfoUrl(): string
  • Returns string

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

    • fullyQualifiedName: string

    Returns Promise<any>

  • getPoxInfoUrl(): string
  • Returns string

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

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

    Returns string

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

    • address: string
    • Optional options: any

    Returns string

  • getRewardsTotalUrl(address: string): string
  • Parameters

    • address: string

    Returns string

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

    • address: string
    • Optional options: any

    Returns string

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

    • contractAddress: string
    • contractName: string

    Returns string

  • getTransactionFeeEstimateApiUrl(): string
  • Returns string

  • getTransferFeeEstimateApiUrl(): string
  • Returns string

  • isMainnet(): boolean
  • Returns boolean

  • Parameters

    • networkName: "mainnet" | "testnet"

    Returns StacksNetwork

Generated using TypeDoc