Ruby
Last updated
Last updated
gem 'money-tree', git: 'https://github.com/bluzelle/money-tree'
gem 'bitcoin-secp256k1', git: '[email protected]:cryptape/ruby-bitcoin-secp256k1'
gem 'bluzelle', git: 'https://github.com/bluzelle/blzrb'bundle installrequire "bluzelle"
client = Bluzelle::new_client({
"address" => "...",
"mnemonic" => "...",
"uuid" => "bluzelle",
"endpoint" => "http://dev.testnet.public.bluzelle.com:1317",
})
key = 'foo'
gas_info = {
'max_fee' => 4000001,
}
client.create key, 'bar', gas_info
value = client.read key
client.update key, 'baz', gas_info
client.delete key, gas_infocp .env.sample .envDEBUG=false LIBRESSL_REDIRECT_STUB_ABORT=0 bundle exec ruby examples/crud.rbbundle exec rspec --format documentation