| asReadableStream | Convert AsyncIterable or ReadableStream to ReadableStream |
| asyncIterableToReadableStream | Convert AsyncIterable to ReadableStream with broad browser compatibility. Provides fallback for environments where ReadableStream.from() is not available. |
| capabilitiesListToObject | Convert capability arrays to object map |
| claimTokens | - |
| clientFromTransport | Create a Viem public client from a transport configuration |
| createPieceUrl | - |
| createPieceUrlPDP | - |
| datasetMetadataObjectToEntry | Convert a dataset metadata object to an array of metadata entries to be signed. |
| decodeAddressCapability | Matches the behavior of address(uint160(BigEndian.decode(values[i]))) |
| decodePDPCapabilities | Decode PDP capabilities from keys/values arrays into a PDPOffering object. Based on Curio’s capabilitiesToOffering function. |
| decodePDPError | - |
| encodePDPCapabilities | - |
| fallbackRandIndex | - |
| fallbackRandU256 | - |
| formatBalance | - |
| formatFraction | - |
| isAsyncIterable | Type guard to check if a value is an AsyncIterable |
| isReadableStream | Type guard to check if a value is a ReadableStream |
| metadataArrayToObject | - |
| pieceMetadataObjectToEntry | Convert a dataset metadata object to an array of metadata entries to be signed. |
| randIndex | Provides a random index into an array of supplied length (0 <= index < length) |
| randU256 | - |
| transportFromTransportConfig | Create a Viem public client from a transport configuration |
| uint8ArrayToAsyncIterable | Convert Uint8Array to async iterable with optimal chunk size. |