Skip to content

toBase64

function toBase64(bytes calldata data) external pure returns (string memory);
function toBase64(string calldata data) external pure returns (string memory);

Encodes a bytes or string value to a base64 string.