Comment on page
Tangem SDK is a library that makes working with Tangem cards as simple as interacting with the usual API with requests and responses. All actions like encoding, decoding, encrypting and decrypting data, handling internal errors, as well as interaction with the user will be performed automatically and developers don't have to take care about it.
The easiest way to use the SDK is to call basic functions that implemented in
We recommend to use the only instance of TangemSdk class.
cardIdargument can be passed to the most of
TangemSdkmethods. If it was passed, the command can only be executed with the certain card that has a matching
cardId. If user uses a card with a different
cardId, the SDK will ask the user to tap the correct card. If
cardIdwas not passed, any card can be used.
When calling basic methods, there is no need to handle an error and show it to user, since it will be displayed on the NFC popup before it's hidden.