참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
address
. This accepts non-checksum addressesa and checksum
addresses.
The checksum in Quai uses the capitalization (upper-case vs lower-case) of the characters within an address to encode
its checksum, which offers, on average, a checksum of 15-bits.
If address
contains both upper-case and lower-case, it is assumed to already be a checksum address and its checksum
is validated, and if the address fails its expected checksum an error is thrown.
If you wish the checksum of address
to be ignore, it should be converted to lower-case (i.e. .toLowercase()
)
before being passed in. This should be a very rare situation though, that you wish to bypass the safeguards in place
to protect against an address that has been incorrectly copied from another source.
Parameter | Type |
---|---|
address | string |
string