Guest User

conseiljs.TezosNodeWriter.sendContractInvocationOperation

a guest
Jan 13th, 2020
213
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * do sp.TString
  3.  * default sp.TList(sp.TPair(sp.TPair(sp.TNat, sp.TNat), sp.TPair(sp.TNat, sp.TPair(sp.TNat, sp.TPair(sp.TNat, sp.TNat)))))
  4.  */
  5.  
  6. async function invoke_contract(){
  7.   const server='https://tezos-dev.cryptonomic-infra.tech/';
  8.   const keystore={
  9.     publicKey:'foo',
  10.     privateKey:'foo',
  11.     publicKeyHash:'foo',
  12.     seed:'',
  13.     storeType:conseiljs.StoreType.Fundraiser
  14.   };
  15.   const to='KT1WRUe3csC1jiThN9KUtaji2bd412upfn1E';
  16.   const amount=0;
  17.   const fee=10000;
  18.   const derivationPath='';
  19.   const storageLimit=1000;
  20.   const gasLimit=100000;
  21.   const entrypoint=undefined;
  22.   const parameters=undefined;
  23.   const parameterFormat=conseiljs.TezosParameterFormat.Michelson;
  24.   await conseiljs.TezosNodeWriter.sendContractInvocationOperation(
  25.     server,
  26.     keystore,
  27.     to,
  28.     amount,
  29.     fee,
  30.     derivationPath,
  31.     storageLimit,
  32.     gasLimit,
  33.     entrypoint,
  34.     parameters,
  35.     parameterFormat
  36.   );
  37. }
  38. invoke_contract();
RAW Paste Data