balanceOf

function balanceOf(
    address account
) public view virtual override returns (uint256)

토큰 λ³΄μœ μˆ˜λŸ‰ 확인

Parameters

TypeValueDescription

address

account

보유 μˆ˜λŸ‰ 확인 μ£Όμ†Œ (eoa, ca)

Return Values

TypeValueDescription

uint256

amount

보유 토큰 μˆ˜λŸ‰

Example

balance = await mockToken0Contract.balanceOf(
        accounts[0].address
)

// 결과 uint256 Max의 경우
BigNumber { value: "4039457584007913129639935" }

2022.12.28

Last updated