Skip to content

Make calls to NEAR contracts with a single argument sourced from file.

License

Notifications You must be signed in to change notification settings

JonathanLogan/nearcall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nearcall

Make calls to NEAR contracts with a single argument sourced from file.

Installation

Requires go >= 1.20.

Install: go install github.com/JonathanLogan/nearcall/cmd/nearcall@0.0.4

Usage

Run nearcall --help for information.

Returns execution errors in original format (exit code 3) on stderr. On success no data is printed (exit code 0), unless "-v" flag is given.

Credentials/Keys

nearcall reads account keys from $HOME/.near-credentials/$NETWORK/$ACCOUNT.json, like near-cli. Hardware wallets are NOT supported.

Supported encodings:

  • Binary (as is)
  • Borsh
  • Base64 (with padding)
  • Base58 (near compatible)
  • Hex (lowercase hexadecimal)
  • xHex (lowercase hexadecimal with leading "x")
  • ZxHex (lowercase hexadecimal with leading "0x")

About

Make calls to NEAR contracts with a single argument sourced from file.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages