Skip to main content
The Storage Registry allows Farcaster accounts to rent one or more β€œunits” of storage on the network. If you want to rent storage for a Farcaster account, use the Storage Registry.

Read

unitPrice

Get the price in wei (uint256) to register 1 unit of storage.

price

Get the price in wei (uint256) to register a specific number of storage units.

Write

rent

Rent a specific number of storage units for a given fid. Excess ether will be returned to the caller. Rented units are valid for 1 year from the time of registration.

batchRent

Rent storage for multiple fids in one transaction. The caller must send enough ether to cover the total cost of all units. Like single-unit rental, extra ether is returned and units are valid for 1 year.

Errors

Source

StorageRegistry.sol