onProgress statuses

By subscribing to the Blocknote.onProgress(), you will receive updates on these tasks.

  • If the compression is set to "fast":

{status: "searching_for_fastest_compression"} 

  • If no compression was set, Blocknote will be choosing the best:

{status: "searching_for_best_compression"}  

  • The content is being compressed

{
    status:      "compressing_content",
    compression: "compression algorithm's name"   
}

  • Blocknote is building the array of transactions to send:

{
    status: "building_transactions",
    counter: 20, // The actual transaction being built
    remaining_content_size: 737497, // Size of remaining content in bytes,
    remaining_transactions: 700 // Transactions left to be build    
}

  • The payload transaction is being sent:

  • The data transactions are being sent (upload begins)

  • The sender account is being closed:

If you are using the BlocknoteManager, these same status messages will be returned by the queue:

But the BlocknoteManager also introduces two additional statuses:

  • As it uses a queue to manage multiple uploads, your upload may be pending while other uploads are being processed: {status: "pending"}

  • Once the upload is over, the upload's result are returned with a done status: {status: "done", result: ...}

Last updated