getLockupsByAccount
function getLockupsByAccount(
address _account
)external returns(LockupResultInfo[] memory list)
ํน์ ๊ณ์ ๋ฝ์ ์ ๋ณด ๋ณด๊ธฐ
Parameters
Return Values
struct LockupResultInfo{
uint256 lockuptime; // lockup ์์ ์๊ฐ
uint256 timestamp; // unlock ์๊ฐ
uint256 amount; // Lockup ํ ํฐ ๊ฐ์
uint256 duration; // Lockup ๊ธฐ๊ฐ
uint256 amountIndex; // lockup ๊ธฐ๊ฐ Index
uint256 index; // Lokcup 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