v1
latestOpenAPI 3.0.42026-07-26159287356.1 KBStorage
Buy storage
This api will help you rent units of storage for an year for a specific FID. A storage unit lets you store 5000 casts, 2500 reactions and 2500 links. Requires x-wallet-id header.
post/v2/farcaster/storage/buy/
Headers
x-wallet-idstring required
Wallet ID to use for transactions
Request body
Example request
{
"fid": 1,
"units": 1
}Response
Success
Example response
{
"allocations": [
{
"expiry": "2024-10-08T22:03:49.000Z",
"object": "storage_allocation",
"timestamp": "2023-10-09T22:03:49.000Z",
"units": 10,
"user": {
"custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"fid": 3
}
}
],
"total_active_units": 13
}