cURL
curl --request POST \ --url https://api.neynar.com/v2/farcaster/storage/buy/ \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "fid": 1, "units": 1, "idem": "<string>" }'
{ "total_active_units": 13, "allocations": [ { "object": "storage_allocation", "user": { "object": "user_dehydrated", "fid": 3, "username": "<string>", "display_name": "<string>", "pfp_url": "<string>", "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7" }, "units": 10, "expiry": "2024-10-08T22:03:49.000Z", "timestamp": "2023-10-09T22:03:49.000Z" } ] }
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.
API key to authorize requests
Success
The response is of type object.
object
Was this page helpful?