Sha256: d35921da37e981caf4d1d7ac6341b0d847c6d2d4c556de6d644bea6d830b63ec

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

#!/usr/bin/env ruby

require "substrate_client"
require "json"

# metadata url block_hash
url = ARGV[0] || "wss://cc3-5.kusama.network/"
block_hash = ARGV[1]

client = SubstrateClient.new(url)
client.init(block_hash)
metadata = client.get_metadata(block_hash)
puts JSON.pretty_generate(metadata.value)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
substrate_client.rb-0.1.5 exe/metadata
substrate_client.rb-0.1.4 exe/metadata