How can I properly pass an an IPFS URI to Taquito's tas.byteshelper?

tas.bytes("https://ipfs.io/ipfs/QmeyjRSnCmWCtfV7jdrdSbY1druBA4hVYmXzdMAYowh74q") doesn't seem to work.

  • I think that is not an IPFS URI, the right format should be ipfs://QmeyjRSnCmWCtfV7jdrdSbY1druBA4hVYmXzdMAYowh74q. Can you try that?
    – Alireza
    Commented Feb 21, 2023 at 0:32

1 Answer 1


I don't know about that specific taquito method, but you can use Bytes from the archetype ts-types library. e.g:

import { Bytes } from "@completium/archetype-ts-types";

const URI_as_bytes : Bytes = Bytes.hex_encode("ipfs://bafybeigzpfsrvvb3ifrfe4tmahmenuf3flbyhi5y4v6g4fn6pqpiqd4wwy")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.