- Any CID can be called by another gateway to view the original content
- Pinata has an SDK method and API endpoint that any Pinata user can call to check the history of a swap
- All gateway requests that have the hot swap plugin installed and are serving a swapped CID will have a header of
etag
that will have the CID that is currently being directed to.
Installation
Follow the steps in the Getting Started guide to install the Hot Swaps Plugin.Usage
After installing the plugin you can then make CID swaps and have them reflect when making Gateway requests. The first parametercid
will be the original CID, and swapCid
will be the content you want it to point to instead.
swapHistory
method, passing in the cid
of the original CID and the domain
of the gateway that has the Hot Swaps plugin installed.
deleteSwap
method and pass in the CID.