Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Created November 8, 2018 12:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraaroncruz/cc14762222559865013073ea1ac9b241 to your computer and use it in GitHub Desktop.
Save mraaroncruz/cc14762222559865013073ea1ac9b241 to your computer and use it in GitHub Desktop.
Use your key with a contract in ruby
key = Eth::Key.new(priv: YOUR_PRIVATE_KEY)
client = Ethereum::HttpClient.new(...)
client.default_account = key.address
contract = Ethereum::Contract.create(...)
contract.key = key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment