Webhooks
Vessel can make server-to-server notification callbacks to your external server. The goal of the callbacks is to provide a convenient method to notify developers of changes to the state of NFT transactions on the block chain.
Add a Webhook
Click Webhooks on the top menu. Enter your own endpoint URL to get Vessel's callbacks and click ADD WEBHOOK button. You need to enter the full path of the callback URL like http://yourserver.com/callbacks
How it works
Vessel sends POST requests with a JSON body payload once the NFT transaction is completed on the blockchain. Vessel makes these callbacks as soon as the transaction is processed but it may be delayed.
If the callback gets non-200 HTTP response code, Vessel will retry the callback multiple times with an exponential delay.
JSON body
JSON body payload has the following fields:
Field Name | Description |
---|---|
fqTn | Fully Qualified Token Name |
from | Wallet address from which the NFT is transferred |
to | Wallet address to which the NFT is transferred |
amount | Amount of the token |
type | NFT transaction types. The following types are supported: TOKEN_MINTED TOKEN_MARKETPLACE_ADD_BUY_OFFER TOKEN_MARKETPLACE_REMOVE_BUY_OFFER TOKEN_MARKETPLACE_TAKE_BUY_OFFER TOKEN_MARKETPLACE_ADD_SELL_OFFER TOKEN_MARKETPLACE_REMOVE_SELL_OFFER TOKEN_MARKETPLACE_TAKE_SELL_OFFER |
messageSignature | The unique message signature |
messageDigest |
|
The example of the JSON payload:
Last updated