Module: Glassnode::RESTv1Blockchain

Included in:
RESTv1
Defined in:
lib/rest/v1/blockchain.rb

Instance Method Summary collapse

Instance Method Details

#block_count(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



126
127
128
# File 'lib/rest/v1/blockchain.rb', line 126

def block_count(params={})
  authenticated_get("metrics/blockchain/block_count", params: params).body
end

#block_height(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



117
118
119
# File 'lib/rest/v1/blockchain.rb', line 117

def block_height(params={})
  authenticated_get("metrics/blockchain/block_height", params: params).body
end

#block_interval_mean(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



135
136
137
# File 'lib/rest/v1/blockchain.rb', line 135

def block_interval_mean(params={})
  authenticated_get("metrics/blockchain/block_interval_mean", params: params).body
end

#block_interval_median(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



144
145
146
# File 'lib/rest/v1/blockchain.rb', line 144

def block_interval_median(params={})
  authenticated_get("metrics/blockchain/block_interval_median", params: params).body
end

#block_size_mean(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



153
154
155
# File 'lib/rest/v1/blockchain.rb', line 153

def block_size_mean(params={})
  authenticated_get("metrics/blockchain/block_size_mean", params: params).body
end

#block_size_sum(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



162
163
164
# File 'lib/rest/v1/blockchain.rb', line 162

def block_size_sum(params={})
  authenticated_get("metrics/blockchain/block_size_sum", params: params).body
end

#utxo_count(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



9
10
11
# File 'lib/rest/v1/blockchain.rb', line 9

def utxo_count(params={})
  authenticated_get("metrics/blockchain/utxo_count", params: params).body
end

#utxo_created_count(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



18
19
20
# File 'lib/rest/v1/blockchain.rb', line 18

def utxo_created_count(params={})
  authenticated_get("metrics/blockchain/utxo_created_count", params: params).body
end

#utxo_created_value_mean(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h", "10m", "1w", "1month"]



54
55
56
# File 'lib/rest/v1/blockchain.rb', line 54

def utxo_created_value_mean(params={})
  authenticated_get("metrics/blockchain/utxo_created_value_mean", params: params).body
end

#utxo_created_value_median(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h", "10m", "1w", "1month"]



72
73
74
# File 'lib/rest/v1/blockchain.rb', line 72

def utxo_created_value_median(params={})
  authenticated_get("metrics/blockchain/utxo_created_value_median", params: params).body
end

#utxo_created_value_sum(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h", "10m", "1w", "1month"]



36
37
38
# File 'lib/rest/v1/blockchain.rb', line 36

def utxo_created_value_sum(params={})
  authenticated_get("metrics/blockchain/utxo_created_value_sum", params: params).body
end

#utxo_loss_count(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h"]



99
100
101
# File 'lib/rest/v1/blockchain.rb', line 99

def utxo_loss_count(params={})
  authenticated_get("metrics/blockchain/utxo_loss_count", params: params).body
end

#utxo_profit_count(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h"]



90
91
92
# File 'lib/rest/v1/blockchain.rb', line 90

def utxo_profit_count(params={})
  authenticated_get("metrics/blockchain/utxo_profit_count", params: params).body
end

#utxo_profit_relative(params = {}) ⇒ Object

Tier: 2 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h"]



108
109
110
# File 'lib/rest/v1/blockchain.rb', line 108

def utxo_profit_relative(params={})
  authenticated_get("metrics/blockchain/utxo_profit_relative", params: params).body
end

#utxo_spent_count(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE"] i: ["1h", "24h", "10m", "1w", "1month"]



27
28
29
# File 'lib/rest/v1/blockchain.rb', line 27

def utxo_spent_count(params={})
  authenticated_get("metrics/blockchain/utxo_spent_count", params: params).body
end

#utxo_spent_value_mean(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h", "10m", "1w", "1month"]



63
64
65
# File 'lib/rest/v1/blockchain.rb', line 63

def utxo_spent_value_mean(params={})
  authenticated_get("metrics/blockchain/utxo_spent_value_mean", params: params).body
end

#utxo_spent_value_median(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h", "10m", "1w", "1month"]



81
82
83
# File 'lib/rest/v1/blockchain.rb', line 81

def utxo_spent_value_median(params={})
  authenticated_get("metrics/blockchain/utxo_spent_value_median", params: params).body
end

#utxo_spent_value_sum(params = {}) ⇒ Object

Tier: 1 Params a: asset symbol c: ["NATIVE", "USD"] i: ["1h", "24h", "10m", "1w", "1month"]



45
46
47
# File 'lib/rest/v1/blockchain.rb', line 45

def utxo_spent_value_sum(params={})
  authenticated_get("metrics/blockchain/utxo_spent_value_sum", params: params).body
end