Sha256: b53a5fb80ec852542a1d5f56849a38e6b1e00e18f75d0d1eab803e611d3498e8

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

#!/usr/bin/env ruby

require "substrate_client"
require "json"

url = ARGV[0] || "wss://kusama-rpc.polkadot.io/"
client = SubstrateClientSync.new(url)

block_hash = ARGV[1] || client.chain_get_finalised_head

metadata = client.get_metadata(block_hash)
puts JSON.pretty_generate(metadata.value.to_human)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
substrate_client.rb-0.1.7 exe/metadata
substrate_client.rb-0.1.6 exe/metadata