new Operation()
Operation class represents operations in Stellar network.
Use one of static methods to create operations:
Operation.createAccountOperation.paymentOperation.pathPaymentOperation.manageOfferOperation.createPassiveOfferOperation.setOptionsOperation.changeTrustOperation.allowTrustOperation.accountMergeOperation.inflation
- Source:
Methods
(static) cancelRequest() → {xdr.Operation}
CancelRequestOp cancels request with a given id. Only creator of the request is allowed to perform this operation.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
opts.requestId |
string
|
id of the request to cancel |
opts.source |
string
|
source of the operation |
Returns:
- Type:
-
xdr.Operation
(static) closeAuction(opts) → {xdr.CloseAuctionOp}
Close the auction.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Operation options.
|
Returns:
- Type:
-
xdr.CloseAuctionOp
(static) createAccount(opts) → {xdr.CreateAccountOp}
Create and fund a non existent account.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
|
Returns:
- Type:
-
xdr.CreateAccountOp
(static) createBid(opts) → {Operation}
Create a bid.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Operation options.
|
Returns:
- Type:
-
Operation
(static) createLot(opts) → {Operation}
Creates a lot.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Operation options.
|
Returns:
- Type:
-
Operation
(static) manageParticipant(opts) → {xdr.manageParticipantOp}
Manage participant.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Operation options.
|
Returns:
- Type:
-
xdr.manageParticipantOp
(static) operationToObject(operation) → {Operation}
Converts the XDR Operation object to the opts object used to create the XDR operation.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
operation |
xdr.Operation
|
An XDR Operation. |
Returns:
- Type:
-
Operation
(static) recover(opts) → {xdr.RecoverOp}
Create a recovery op.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
|
Returns:
- Type:
-
xdr.RecoverOp
(static) requestBuyNow(opts) → {xdr.RequestBuyNowOp}
Request "buy now".
- Source:
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
opts |
object
|
|
Returns:
- Type:
-
xdr.RequestBuyNowOp
(static) requestParticipation(opts) → {Operation}
Make a request to participate in an auction.
- Source:
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Operation options.
|
Returns:
- Type:
-
Operation
(static) reviewRequest(opts)
Approve or reject reviewable request
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
|
(static) sendMessage(opts) → {Operation}
Leave a message for the lot.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
Operation options.
|
Returns:
- Type:
-
Operation
(static) setOptions(opts) → {xdr.SetOptionsOp}
Returns an XDR SetOptionsOp. A "set options" operations set or clear account flags, set the account's inflation destination, and/or add new signers to the account. The account flags are the xdr.AccountFlags enum, which are:
- AUTH_REQUIRED_FLAG = 0x1
- AUTH_REVOCABLE_FLAG = 0x2
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object
|
|
Returns:
- Type:
-
xdr.SetOptionsOp