OperationTransaction
public class OperationTransaction : Operation
Operation subclass for sending XTZ to a destination
-
The amount of XTZ to send. Use
TokenAmount().rpcRepresentationto create this valueDeclaration
Swift
public var amount: String -
Declaration
Swift
public let destination: String -
Dictionary holding the
entrypointandvalueof the contract callDeclaration
Swift
public let parameters: [String : Any]?
-
Create an OperationTransaction, to send an amount of token to a destination
Declaration
Swift
public init(amount: TokenAmount, source: String, destination: String)Parameters
amountThe amount of XTZ to send. Use
TokenAmount().rpcRepresentationto create this value.sourceThe address of the acocunt sending the operation.
destinationThe destination address to recieve the funds.
-
Create an OperationTransaction, to invoke a smart contract call
Declaration
Swift
public init(amount: TokenAmount, source: String, destination: String, parameters: [String : Any])Parameters
amountThe amount of XTZ to send. Use
TokenAmount().rpcRepresentationto create this value.sourceThe address of the acocunt sending the operation.
parametersA dictionary containing the michlelson JSON representation needed to invoke a smart contract. Should contain a key
entrypointwith a string andvaluewhich can either be a dictionary of anything, or an array of dicitonaries of anythingdestinationThe destination address to recieve the funds.
-
Declaration
Swift
public required init(from decoder: Decoder) throws -
Declaration
Swift
public override func encode(to encoder: Encoder) throws -
A function to check if two operations are equal.
Declaration
Swift
public func isEqual(_ op: OperationTransaction) -> BoolParameters
_An
Operationto compare againstReturn Value
A
Boolindicating the result.
Install in Dash