Payment
funder.submitFundTransaction()
Tells the network to re-evaluate a funding transaction.
Parameters
| Name | Type | Description |
|---|---|---|
| txId | string | The ID of the funding transaction to re-evaluate |
Returns
| Type | Description |
|---|---|
| object | A 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
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);
}