Package com.syntifi.casper.sdk.service
Class CasperDeployService
- java.lang.Object
-
- com.syntifi.casper.sdk.service.CasperDeployService
-
public class CasperDeployService extends java.lang.ObjectDeploy Service class implementing the process to generate deploys- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description CasperDeployService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeploybuildTransferDeploy(com.syntifi.crypto.key.AbstractPrivateKey fromPrivateKey, PublicKey toPublicKey, java.math.BigInteger amount, java.lang.String chainName)Method to generate a Transfer deploystatic DeploybuildTransferDeploy(com.syntifi.crypto.key.AbstractPrivateKey fromPrivateKey, PublicKey toPublicKey, java.math.BigInteger amount, java.lang.String chainName, java.lang.Long id, java.math.BigInteger paymentAmount, java.lang.Long gasPrice, Ttl ttl, java.util.Date date, java.util.List<Digest> dependencies)
-
-
-
Method Detail
-
buildTransferDeploy
public static Deploy buildTransferDeploy(com.syntifi.crypto.key.AbstractPrivateKey fromPrivateKey, PublicKey toPublicKey, java.math.BigInteger amount, java.lang.String chainName) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException, java.security.GeneralSecurityException
Method to generate a Transfer deploy- Parameters:
fromPrivateKey- sender private KeytoPublicKey- receiver public keyamount- amount to transferchainName- network name- Returns:
- Deploy
- Throws:
NoSuchTypeException- thrown if type not foundDynamicInstanceException- thrown if it could not instantiate a typeCLValueEncodeException- thrown if failed to encode a cl valuejava.io.IOException- thrown if an IO error occursjava.security.GeneralSecurityException- thrown when an error occurs with cryptographic keys
-
buildTransferDeploy
public static Deploy buildTransferDeploy(com.syntifi.crypto.key.AbstractPrivateKey fromPrivateKey, PublicKey toPublicKey, java.math.BigInteger amount, java.lang.String chainName, java.lang.Long id, java.math.BigInteger paymentAmount, java.lang.Long gasPrice, Ttl ttl, java.util.Date date, java.util.List<Digest> dependencies) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException, java.security.GeneralSecurityException
- Parameters:
fromPrivateKey- private key of the sendertoPublicKey- public key of the receiveramount- amount to transferid- id field in the request to tag the transactionpaymentAmount- , the number of motes paying to the execution enginegasPrice- gasPrice for native transfers can be set to 1ttl- time to live in milliseconds (default value is 1800000 ms (30 minutes))- Returns:
- Deploy
- Throws:
NoSuchTypeException- thrown if type not foundDynamicInstanceException- thrown if it could not instantiate a typeCLValueEncodeException- thrown if failed to encode a cl valuejava.io.IOException- thrown if an IO error occursjava.security.GeneralSecurityException- thrown when an error occurs with cryptographic keys
-
-