getLockupsByAccount

function getLockupsByAccount(
    address _account
)external returns(LockupResultInfo[] memory list)

특정 계정 락업 정보 보기

Parameters

TypeValueDescription

address

_account

lockup 계정 주소

Return Values

struct LockupResultInfo{
    uint256 lockuptime;    // lockup 시작 시간
    uint256 timestamp;     // unlock 시간
    uint256 amount;        // Lockup 토큰 개수
    uint256 duration;      // Lockup 기간
    uint256 amountIndex;   // lockup 기간 Index
    uint256 index;         // Lokcup Index 
}

TypeValueDescription

LockupResultInfo[]

list

lockup 정보

LockupResultInfo.uint256

lockuptime

lockup 시작 시간

LockupResultInfo.uint256

timestamp

lockup 시간

LockupResultInfo.uint256

amount

lockup 토큰 개수

LockupResultInfo.uint256

duration

lockup 기간

LockupResultInfo.uint256

amountIndex

lockup 기간 Index

LockupResultInfo.uint256

index

lockup index

Example

await lockupContract.getLockupsByAccount(accounts[0].address)

// 결과
[
  [
    BigNumber { value: "1679469948" },
    BigNumber { value: "1679324400" },
    BigNumber { value: "24000000000000000000" },
    BigNumber { value: "23328000" },
    BigNumber { value: "33" },
    BigNumber { value: "9" },
    '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC',
    lockuptime: BigNumber { value: "1679469948" },
    timestamp: BigNumber { value: "1679324400" },
    amount: BigNumber { value: "24000000000000000000" },
    duration: BigNumber { value: "23328000" },
    index: BigNumber { value: "33" },
    amountIndex: BigNumber { value: "9" },
    account: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
  ]
]

2023.03.22

Last updated