funder.submitFundTransaction()

Tells the network to re-evaluate a funding transaction.

Parameters

NameTypeDescription
txIdstringThe ID of the funding transaction to re-evaluate

Returns

TypeDescription
objectA JSON object with the following values

Return object structure:

response = {
  id,           // The transaction ID of the fund transfer
  quantity,     // How much is being transferred
  reward,       // The amount taken by the network as a fee
  target,       // The address the funds were sent to
};

Example

Note
Note
Use a token-specific version of getIrysUploader() to connect to an Irys Bundler before uploading.
const irys = await getIrysUploader();

try {
  // First get a receipt
  const fundTx = await irys.fund(irys.utils.toAtomic(0.05));
  const response = await irys.funder.submitFundTransaction(fundTx.id);
} catch (e) {
  console.log("Error funding ", e);
}