Skip to content

Function: solBytesArrayToIpfsHash() ​

ts
function solBytesArrayToIpfsHash(hashArray): string;

Convert the ipfs bytes from a solana job to a CID It prepends the 0x1220 (18,32) to make it 34 bytes and Base58 encodes it. This result is IPFS addressable.

Parameters ​

ParameterType
hashArraynumber[]

Returns ​

string