Modifying the Ledger
All changes to the XAG Ledger happen as the result of transactions. The only API methods that can change the contents of the XAG Ledger are the commands that submit transactions. Even then, changes only apply permanently if the transactions are approved by the consensus process. Most other public methods represent different ways to view the data represented in the XAG Ledger, or request information about the state of the server.
Transaction submission commands:
For more information on the various transactions you can submit, see the Transaction Formats Reference.