useExchangeAccounts
hook. This hook provides programmatic access to exchange account management, transaction history, and transfer operations.
exchangeTransfer
endpoint publishes two types of events depending on the outcome of the transfer operation:
user.exchangeTransfer.success
ExchangeTransferResponse
object containing:
user.exchangeTransfer.failed
environmentId
: The project environment IDuserId
: The ID of the user performing the transfereventName
: Either "user.exchangeTransfer.success"
or "user.exchangeTransfer.failed"
user.exchangeTransfer.success
user.exchangeTransfer.failed
messageId
field to handle duplicate events safely