The API structure returned by LedgerClientFactory (or older style composeApi)

The programming interface uses a builder pattern to mount an API.

const api = LedgerClientFactory.createClient({
nodeHost: 'https://europe.signum.network', // one of the mainnet nodes
})
const api = composeApi({
nodeHost: 'https://europe.signum.network', // one of the mainnet nodes
})

While this is a straightforward way to have access to all API 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 a subset of the API conforming their needs using the ApiComposer class.

Constructors

Properties

account: AccountApi
alias: AliasApi
asset: AssetApi
block: BlockApi
contract: ContractApi
message: MessageApi
network: NetworkApi
service: ChainService

This leaks the underlying ChainService instance to interact with the chain nodes API directly, e.g. to use an API method that is not supported by SignumJS yet.

transaction: TransactionApi