Skip to content

detectMessageType() function in the BitBadges TypeScript SDK (bitbadges on npm): signature, properties, methods, and usage.

detectMessageType(message): MessageType

Defined in: packages/bitbadgesjs-sdk/src/transactions/precompile/type-detector.ts:188

Detect the type of a BitBadges SDK message or proto message

Parameters

message

any

The SDK message or proto message to detect

Returns

MessageType

The detected message type

Throws

Error if the message type is not supported

Edit this page on GitHub