Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Api

The API structure returned by composeApi

The programming interface uses a builder pattern to mount an API. For sake of simplicity the composeApi method mounts the entire API, i.e. all available methods are mounted using this class

const api = composeApi({
  nodeHost: 'https://wallet1.burst-team.us:2083', // one of the mainnet nodes
  apiRootUrl: '/burst' // endpoint to the BURST API
})

While this is a straightforward way to have access to all BURST functionality, this methods has the disadvantage of including all needed dependencies, thus leading to a bigger bundle, for those who use bundlers like webpack. To reduce the bundle size, one may mount the API conforming his needs using the ApiComposer class.

Hierarchy

  • Api

Index

Properties

account

account: AccountApi

alias

alias: AliasApi

asset

asset: AssetApi

block

block: BlockApi

contract

contract: ContractApi

message

message: MessageApi

network

network: NetworkApi

service

service: BurstService

This leaks the underlying service instance to interact with the BRS API directly, e.g. to use an API method that is not supported by BurstJS yet.

transaction

transaction: TransactionApi