Associate a Token
Last updated
Last updated
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.
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 :
Find more details on the webhook implementation here
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