Skip to content

nultinator/ycash.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ycash.jl

A wrapper for "ycash-cli" from the Julia REPL.

You must have Julia, a Ycash/Zcash Full Node, and ycash-cli installed on your machine. Julia can be downloaded from here: https://julialang.org/downloads/.

Getting Started

  cd ycashcli/src
  ./julia

Once inside a live REPL

  include("ycash.jl")

Commands and Usage

ycashcli()

Takes a command(string) and up to two args(any) as input, then returns the information sent back from the node. The following snippets are not an exhaustive list but just a few examples

ycashcli("getblockchaininfo")
ycashcli("getpeerinfo")
ycashcli("getblock", 0")

shielded_send()

Takes your y_address(string), to_address(string), amount(float64) and fee(float64) as input. A shielded transaction is then created and sent using the input data.

shielded_send("ys1youryaddressgoeshereblahblahblah", "ys1youaresendingtothisaddressblahblah", 21.0, 0.01)

getnewaddress()

Returns a new transaparent address

getnewaddress()

safe_send()

Takes a receiving address(string), amount(float64), and fee(float64) as input, then generates a new change address to help protect some of the privacy of the sender. A new the new transaction is then created and the change is sent to newly generated address. This is NOT a replacement for shielded transactions.

safe_send("s1youaresendingtothisaddress", 21.0, 0.01)

PRs Welcome

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages