new Operation()
`Operation` class represents [operations](https://www.stellar.org/developers/learn/concepts/operations.html) in Stellar network.
Use one of static methods to create operations:
* `Operation.createAccount`
* `Operation.payment`
* `Operation.pathPayment`
* `Operation.manageOffer`
* `Operation.createPassiveOffer`
* `Operation.setOptions`
* `Operation.changeTrust`
* `Operation.allowTrust`
* `Operation.accountMerge`
* `Operation.inflation`
* `Operation.manageData`
* `Operation.bumpSequence`
* thuannd start
* `Operation.createContract`
* `Operation.callContract`
* `Operation.sendAsset`
* `Operation.checkContract`
* thuannd end
- Source:
Methods
(static) fromXDRObject(operation) → {Operation}
Converts the XDR Operation object to the opts object used to create the XDR
operation.
Parameters:
| Name | Type | Description |
|---|---|---|
operation |
xdr.Operation | An XDR Operation. |
- Source:
Returns:
- Type
- Operation