Esempio n. 1
0
 public TransferTransaction(char chainId, byte[] senderPublicKey, string recipient,
                            Asset asset, decimal amount, decimal fee = 0.001m, byte[] attachment = null) :
     this(chainId, senderPublicKey, recipient, asset, amount, fee, Assets.WAVES, attachment)
 {
 }
Esempio n. 2
0
 public TransferTransaction(char chainId, byte[] senderPublicKey, string recipient,
                            Asset asset, decimal amount, string attachment) :
     this(chainId, senderPublicKey, recipient, asset, amount, 0.001m,
          Encoding.UTF8.GetBytes(attachment))
 {
 }
Esempio n. 3
0
 public MassTransferTransaction(char chainId, byte[] senderPublicKey, Asset asset, IEnumerable<MassTransferItem> transfers,
     string attachment, decimal? fee = null) : 
     this(chainId, senderPublicKey, asset, transfers, Encoding.UTF8.GetBytes(attachment), fee) 
 {
 }
Esempio n. 4
0
 public InvokeScriptTransaction(char chainId, byte[] senderPublicKey,
                                string dappAddress,
                                Dictionary <Asset, decimal> payment, decimal fee, Asset feeAsset) : base(chainId, senderPublicKey)
 {
     DappAddress           = dappAddress;
     Payment               = payment ?? new Dictionary <Asset, decimal>();
     Fee                   = fee;
     FeeAsset              = feeAsset ?? Assets.WAVES;
     FunctionHeader        = null;
     FunctionCallArguments = new List <object>();
 }
Esempio n. 5
0
        public string InvokeScript(PrivateKeyAccount caller, string dappAddress,
                                   Dictionary <Asset, decimal> payment, decimal fee = 0.005m, Asset feeAsset = null)
        {
            var tx = new InvokeScriptTransaction(ChainId, caller.PublicKey, dappAddress,
                                                 payment, fee, feeAsset);

            tx.Sign(caller);
            return(Broadcast(tx));
        }
Esempio n. 6
0
 public BurnTransaction(char chainId, byte[] senderPublicKey, Asset asset, decimal quantity, decimal fee = 0.001m) : base(chainId, senderPublicKey)
 {
     Asset = asset;
     Quantity = quantity;
     Fee = fee;
 }