validateaddress
Summary
Return information about the given qbit address.
Description
Return information about the given qbit address.
Arguments
address(STR, required): The qbit address to validate
Results
value(OBJ): No description.isvalid(BOOL): If the address is valid or notaddress(STR, optional): The qbit address validatedscriptPubKey(STR_HEX, optional): The hex-encoded output script generated by the addressisscript(BOOL, optional): If the key is a scriptiswitness(BOOL, optional): If the address is a witness addresswitness_version(NUM, optional): The version number of the witness programwitness_program(STR_HEX, optional): The hex value of the witness programerror(STR, optional): Error message, if anyerror_locations(ARR, optional): Indices of likely error locations in address, if known (e.g. Bech32 errors)index(NUM): index of a potential error
Examples
qbit-cli validateaddress "qb1zqqqsyqcyq5rqwzqfpg9scrgwpugpzysnzs23v9ccrydpk8qarc0sjq57mw"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "validateaddress", "params": ["qb1zqqqsyqcyq5rqwzqfpg9scrgwpugpzysnzs23v9ccrydpk8qarc0sjq57mw"]}' -H 'content-type: application/json' http://127.0.0.1:8352/