Get Link Details

Want to get some basic info of the created Link? Here is how you can.

You can get all information about a Link by calling the getLinkDetails function.

await peanut.getLinkDetails({
		link: '',

The above function will return the following values:

interface IGetLinkDetailsResponse {
    link: string
    chainId: string
    depositIndex: number
    contractVersion: string
    password: string
    sendAddress: string
    tokenType: string
    tokenAddress: string
    tokenDecimals: number
    tokenSymbol: string
    TokenName: string
    tokenAmount: number
    tokenId: number
    claimed: boolean
    depositDate: string
    tokenURI: string

Last updated