Beispiel #1
0
        public string EncodeStakeRequestData(string walletAddress, Money18 amount)
        {
            var func = new IncreaseStakeFunction
            {
                Amount  = amount.ToAtto(),
                Account = walletAddress
            };

            return(EncodeRequestData(func));
        }
Beispiel #2
0
        public string EncodeDecreaseRequestData(string walletAddress, Money18 amountToBurn, Money18 amountToRelease)
        {
            var func = new DecreaseStakeFunction()
            {
                AmountToBurn    = amountToBurn.ToAtto(),
                AmountToRelease = amountToRelease.ToAtto(),
                Account         = walletAddress
            };

            return(EncodeRequestData(func));
        }
        public string EncodeTransferToExternalData(string privateAddress, string publicAddress, BigInteger internalTransferId, Money18 amount)
        {
            var func = new TransferFromInternalNetworkFunction
            {
                InternalAccount    = privateAddress,
                PublicAccount      = publicAddress,
                Amount             = amount.ToAtto(),
                InternalTransferId = internalTransferId,
            };

            return(EncodeRequestData(func));
        }