Class StacksApiSocketClient
Methods
handleSubscription
- handleSubscription(topic: Topic, subscribe?: boolean): { unsubscribe: (() => void) }
-
Parameters
-
topic: Topic
-
subscribe: boolean = false
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
logEvents
- logEvents(): void
-
Returns void
subscribeAddressStxBalance
- subscribeAddressStxBalance(address: string): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeAddressTransactions
- subscribeAddressTransactions(address: string): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeBlocks
- subscribeBlocks(): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeMempool
- subscribeMempool(): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeMicroblocks
- subscribeMicroblocks(): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeNftAssetEvent
- subscribeNftAssetEvent(assetIdentifier: string, value: string): { unsubscribe: (() => void) }
-
Parameters
-
assetIdentifier: string
-
value: string
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeNftCollectionEvent
- subscribeNftCollectionEvent(assetIdentifier: string): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeNftEvent
- subscribeNftEvent(): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
subscribeTransaction
- subscribeTransaction(txId: string): { unsubscribe: (() => void) }
-
Returns { unsubscribe: (() => void) }
-
unsubscribe: (() => void)
unsubscribeAddressStxBalance
- unsubscribeAddressStxBalance(address: string): void
-
Returns void
unsubscribeAddressTransactions
- unsubscribeAddressTransactions(address: string): void
-
Returns void
unsubscribeBlocks
- unsubscribeBlocks(): void
-
Returns void
unsubscribeMempool
- unsubscribeMempool(): void
-
Returns void
unsubscribeMicroblocks
- unsubscribeMicroblocks(): void
-
Returns void
unsubscribeNftAssetEvent
- unsubscribeNftAssetEvent(assetIdentifier: string, value: string): void
-
Parameters
-
assetIdentifier: string
-
value: string
Returns void
unsubscribeNftCollectionEvent
- unsubscribeNftCollectionEvent(assetIdentifier: string): void
-
Returns void
unsubscribeNftEvent
- unsubscribeNftEvent(): void
-
Returns void
unsubscribeTransaction
- unsubscribeTransaction(txId: string): void
-
Returns void