Fetches storage usage for a given user

farcasterStorage.getStorageUsage

Overview

Fetches storage usage for a given user

Parameters

name
type
required
Note

fid

number

true

ex) 721870

Usage

let res = await Lum0x.farcasterStorage.getStorageUsage({
    fid: 721870
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "object": "storage_usage",
  "user": {
    "object": "user_dehydrated",
    "fid": 721870
  },
  "total_active_units": 1,
  "casts": {
    "object": "storage",
    "used": 7,
    "capacity": 5000
  },
  "reactions": {
    "object": "storage",
    "used": 2,
    "capacity": 2500
  },
  "links": {
    "object": "storage",
    "used": 116,
    "capacity": 2500
  },
  "verifications": {
    "used": 0,
    "capacity": 25
  },
  "username_proofs": {
    "used": 0,
    "capacity": 5
  },
  "signers": {
    "used": 1,
    "capacity": 1000
  }
}

Category

Used

Capacity

Total Active Units

1

-

Casts

7

5000

Reactions

2

2500

Links

116

2500

Verifications

0

25

Username Proofs

0

5

Signers

1

1000

Field Description

  • Category: Data category

  • Used: Amount of storage space used

  • Capacity: Total storage space capacity

Last updated