Custom charges container for transaction content
Extensible structure to support various operation types that require cost estimation. Each field is optional and specific to operation type.
// IPFS operation with custom chargesconst tx: TransactionContent = { type: "ipfs", // ... other fields custom_charges: { ipfs: { max_cost_os: "1000000000", // 1 DEM in OS file_size_bytes: 1024, operation: "IPFS_ADD" } }} Copy
// IPFS operation with custom chargesconst tx: TransactionContent = { type: "ipfs", // ... other fields custom_charges: { ipfs: { max_cost_os: "1000000000", // 1 DEM in OS file_size_bytes: 1024, operation: "IPFS_ADD" } }}
Optional
IPFS operation cost configuration
Custom charges container for transaction content
Extensible structure to support various operation types that require cost estimation. Each field is optional and specific to operation type.
Example