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