Associate a Token
The following sample will show you how to make a token association. We will first generate a request for the end user. Once validated, you will get notified about transaction's status.
Prerequisites:
pageGetting startedInitializing Token Association
When initializing a token association, a request will be sent to the end user. A Webhook must be defined as a second parameter and will be called every time a token has been associated successfully.
On each user's validation, you will receive a JSON like this :
Fields | Type | Description |
fromAccountId | string | Account Id of the emitter |
toAccountId | string | Account Id of the receiver |
tokenId | string | Token ID being associated |
status | 'Accepted' or 'Refused' | Status of the request |
uniqId | string | Custom Uniq Id |
Find more details on the webhook implementation here
Last updated