Install
Place the script
<script
src="https://x.gifts/js/widget/v1.js"
data-client-key="YOUR_WIDGET_CLIENT_KEY"
></script>
<button data-xgifts-open data-entry="base">
Create gift
</button>Widget
Drop in one script, pass the context you already know, and open a focused x.gifts creation moment without sending people away from the surface they trust.
Partner checkout
Context loaded
Create a USDC gift on Base.
The flow opens prepared. The sender only decides the gift.
Entry
base
Token
USDC
Source
checkout
Embed
The widget stays invisible until your product asks for it. Then it opens with the network, token, and campaign already in place.
Install
Place the script once.
Prepare
Pass the entry and token.
Open
Let x.gifts handle creation.
Install
<script
src="https://x.gifts/js/widget/v1.js"
data-client-key="YOUR_WIDGET_CLIENT_KEY"
></script>
<button data-xgifts-open data-entry="base">
Create gift
</button>Launch
window.xgifts.open({
entry: 'base',
token: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
symbol: 'USDC',
});Control
x.gifts keeps the ceremony. Your product decides where it begins.
Keeps the embedded surface scoped to the chains and environments your product supports.
Starts people in the right create flow instead of asking them to find the right network.
Carries token, asset, source, and campaign data into the gift moment.
Intent
Button, card, claim reward, token page, or campaign action.
Recipients meet the same polished gift flow every time.
The create screen opens prepared instead of empty.