Dynamic updates of decentralized invoices
An example operation may include one or more of detecting, by a blockchain (BC) node, a contract update on a blockchain, determining, by the BC node, at least one charge affected by the contract update, executing, by the BC node, a smart contract to re-generate an invoice based on the at least one charge, and recording the invoice on a ledger of the blockchain.
1. A node in a blockchain network system, the node comprising:
a processor that, when executing one or more instructions stored in an associated memory, is configured to:
identify a dispute regarding a previously generated invoice stored in a ledger of a blockchain of the blockchain network;
execute a smart contract to resolve the dispute, wherein the smart contract being executed results in an update to a contract stored in the blockchain, wherein the contract is associated with the previously generated invoice stored in a ledger of the blockchain;
in response to the dispute being resolved, generate dispute resolution data by the smart contract and record the dispute resolution data on a blockchain ledger;
allow a role-based access to different prices of a previously generated invoice to a plurality of nodes associated with the previously generated invoice;
using the dispute resolution data, execute a smart contract to regenerate in real time the previously generated invoice from the ledger based on key values of the previously generated invoice that are stored in a state database of the blockchain, wherein the key values are associated with the ledger of the blockchain;
record the regenerated invoice on the ledger; and
allow dynamic updates of contractual agreements and the regeneration of the invoices of decentralized trusted invoices based on the blockchain.
2. The system of claim 1 , wherein the processor is further configured to:
execute the smart contract to convert the previously generated invoice into another currency based on a conversion rate from the contract.
3. The system of claim 1 , wherein the processor is further configured to:
reduce a dispute resolution time by resolving incremental disputes for incremental invoices.
4. A method comprising:
identifying a dispute regarding a previously generated invoice stored in a ledger of a blockchain of the blockchain network;
executing a smart contract to resolve the dispute, wherein the executing of the smart contract results in updating a contract stored in wherein the contract is associated with the previously generated invoice stored in a ledger of the blockchain;
in response to the dispute being resolved, generating dispute resolution data by the smart contract and recording the dispute resolution data on a blockchain ledger;
allowing a role-based access to different prices of a previously generated invoice to a plurality of nodes associated with the previously generated invoice;
using the dispute resolution data, executing a smart contract to regenerate in real time the previously generated invoice from the ledger based on key values of the previously generated invoice that are stored in a state database of the blockchain, wherein the key values are associated with the ledger of the blockchain;
recording the regenerated invoice on the ledger; and
allowing dynamic updates of contractual agreements and the regeneration of the invoices of decentralized trusted invoices based on the blockchain.
5. The method of claim 4 , further comprising:
executing the smart contract to convert the previously generated invoice into another currency based on a conversion rate from the contract.
6. The method of claim 4 , further comprising:
reducing a dispute resolution time by resolving incremental disputes for incremental invoices.
7. A non-transitory computer-readable medium comprising one or more instructions that, when executed by a processor of a node in a blockchain network, cause the processor to perform:
identifying a dispute regarding a previously generated invoice stored in a ledger of a blockchain of the blockchain network;
executing a smart contract to resolve the dispute, wherein the executing of the smart contract results in updating a contract stored in a blockchain of the blockchain network, wherein the contract is associated with the previously generated invoice stored in a ledger of the blockchain;
in response to the dispute being resolved, generating dispute resolution data by the smart contract and recording the dispute resolution data on a blockchain ledger;
allowing a role-based access to different prices of a previously generated invoice to a plurality of nodes associated with the previously generated invoice;
using the dispute resolution data, executing a smart contract to regenerate in real time the previously generated invoice from the ledger based on key values of the previously generated invoice that are stored in a state database of the blockchain, wherein the key values are associated with the ledger of the blockchain;
recording the regenerated invoice on the ledger; and
allowing dynamic updates of contractual agreements and the regeneration of the invoices of decentralized trusted invoices based on the blockchain.
8. The non-transitory computer-readable medium of claim 7 , wherein the one or more instructions further cause the processor to perform:
reducing a dispute resolution time by resolving incremental disputes for incremental invoices.