GetSBT
Endpoint
Endpoint
GET /api/public/sbt
This endpoint allows retrieving information about a user's Soulbound Token (SBT) in Lens Reputation. If the user has minted their NFT, details of the NFT and their score will be returned. If they haven't minted the NFT, the response will indicate this status.
Query Parameters
wallet
string
Yes
Wallet address of the user in hexadecimal format (e.g., 0xabc123...
).
lensAccountAddress
string
No
Optional Lens account address. If not provided, defaults to 0x000...000
Example Request
Request
Responses
200 - OK (User has minted the NFT)
If the user has minted the NFT, the response will have the following structure:
minted
bool
Indicates that the user has minted the NFT.
nft.tokenId
string
ID of the minted NFT.
nft.image
string
URL of the image associated with the NFT.
score
integer
The user's current score in Lens Reputation.
timestamp
integer
Timestamp of the minting or last update
200 - OK (User has not minted the NFT yet)
If the user has not minted the NFT, the response will be:
minted
bool
Indicates that the user has not minted the NFT.
message
string
Informative message.
400 - Bad Request
If the wallet
parameter is missing or has an invalid format:
error
string
Description of the error.
500 - Internal Server Error
If an unexpected server error occurs:
error
string
Generic error message.
Last updated