Function: createBlobUploadFlow()
createBlobUploadFlow(
client,contents):WriteBlobFlow
Defined in: @meddleware/walrus-storage-client/src/upload.ts:158
Begin a multi-step raw-blob upload flow suitable for browser wallet signing.
Drive the returned flow:
ts
await flow.encode()
const regTx = flow.register({ owner, epochs, deletable }) // wallet signs + executes
await flow.upload({ digest }) // digest of regTx
const certTx = flow.certify() // wallet signs + executes
const { blobId } = await flow.getBlob() // use walrusBlobUrl(network, blobId)Parameters
client
ClientWithExtensions
contents
Uint8Array
Returns
WriteBlobFlow