Web3S_Demo > Web 3S Ipfs Function Library > String to IPFS Address

String to IPFS Address

Converts string to Ipfs Address. Supports CID v0 and v1 (only base32 encoded).
NOTE: This function doesn't check for CID validity.

Inputs

String
String

String to convert.

Outputs

Error Message
String

Returns error message. If address was found ErrorMessage will be empty.

IPFS Address
Web 3S Ipfs Address Structure

Address with CID and Path(if exists) found in string. If address wasn't found Address will be empty.

Success
Boolean

True if address was found.