AddressValidity
Assertion whether a given string represents a valid address on an external blockchain.
Supported chains
BTC
(Bitcoin)DOGE
(Dogecoin)XRP
(XRP Ledger)- Test networks:
testBTC
(Bitcoin Testnet v3),testDOGE
,testXRP
Request
Field | Solidity Type | Description |
---|---|---|
addressStr | string | The address string to verify. |
Response
Field | Solidity Type | Description |
---|---|---|
isValid | bool | Indicates whether the provided address is valid. |
standardAddress | string | The standardized form of the validated address if isValid ; otherwise, an empty string. |
standardAddressHash | bytes32 | The keccak256 hash of the standardAddress if isValid ; otherwise, a zero bytes32 string. |
Verification process
The address is verified against the validity criteria specific to the chain identified by sourceId
. If the address meets all criteria:
isValid
is set totrue
.- The
standardAddress
and itsstandardAddressHash
are computed.
If the address is invalid:
isValid
is set tofalse
.- The
standardAddress
is empty andstandardAddressHash
is zero value.
Lowest used timestamp
For the lowestUsedTimestamp
parameter, the value 0xffffffffffffffff
(equivalent to ) in hexadecimal) is used as the default.