mirror of
https://github.com/actions/setup-node.git
synced 2026-06-14 14:13:52 +08:00
Compare commits
7 Commits
v2
...
f52e974c1d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f52e974c1d | ||
|
|
6deefe4234 | ||
|
|
f099707f6e | ||
|
|
f658dc5bd7 | ||
|
|
5e2e068714 | ||
|
|
7a0f7a9962 | ||
|
|
7b558676dd |
7
.github/workflows/build-test.yml
vendored
7
.github/workflows/build-test.yml
vendored
@@ -3,14 +3,14 @@ name: build-test
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
push:
|
||||
- '**.md'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- releases/*
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -23,6 +23,7 @@ jobs:
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 12.x
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm run format-check
|
||||
|
||||
3
.github/workflows/check-dist.yml
vendored
3
.github/workflows/check-dist.yml
vendored
@@ -24,9 +24,10 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set Node.js 12.x
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 12.x
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
2
.github/workflows/e2e-cache.yml
vendored
2
.github/workflows/e2e-cache.yml
vendored
@@ -75,7 +75,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
node-version: [14, 16]
|
||||
node-version: [12, 14, 16]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Yarn version
|
||||
|
||||
12
.github/workflows/proxy.yml
vendored
12
.github/workflows/proxy.yml
vendored
@@ -3,14 +3,14 @@ name: proxy
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
push:
|
||||
- '**.md'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
- releases/*
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
|
||||
jobs:
|
||||
test-proxy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
options: --dns 127.0.0.1
|
||||
services:
|
||||
squid-proxy:
|
||||
image: ubuntu/squid:latest
|
||||
image: datadog/squid:latest
|
||||
ports:
|
||||
- 3128:3128
|
||||
env:
|
||||
@@ -37,8 +37,6 @@ jobs:
|
||||
|
||||
test-bypass-proxy:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
env:
|
||||
https_proxy: http://no-such-proxy:3128
|
||||
no_proxy: api.github.com,github.com,nodejs.org,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
|
||||
|
||||
30
.licenses/npm/@actions/core-1.2.4.dep.yml
generated
Normal file
30
.licenses/npm/@actions/core-1.2.4.dep.yml
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
name: "@actions/core"
|
||||
version: 1.2.4
|
||||
type: npm
|
||||
summary: Actions core lib
|
||||
homepage: https://github.com/actions/toolkit/tree/master/packages/core
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: Auto-generated MIT license text
|
||||
text: |
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
notices: []
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "@actions/core"
|
||||
version: 1.10.0
|
||||
version: 1.6.0
|
||||
type: npm
|
||||
summary: Actions core lib
|
||||
homepage: https://github.com/actions/toolkit/tree/main/packages/core
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
name: "@actions/http-client"
|
||||
version: 2.1.0
|
||||
version: 1.0.8
|
||||
type: npm
|
||||
summary: Actions Http Client
|
||||
homepage: https://github.com/actions/toolkit/tree/main/packages/http-client
|
||||
homepage: https://github.com/actions/http-client#readme
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE
|
||||
20
.licenses/npm/@actions/io-1.1.2.dep.yml
generated
20
.licenses/npm/@actions/io-1.1.2.dep.yml
generated
@@ -1,20 +0,0 @@
|
||||
---
|
||||
name: "@actions/io"
|
||||
version: 1.1.2
|
||||
type: npm
|
||||
summary: Actions io lib
|
||||
homepage: https://github.com/actions/toolkit/tree/main/packages/io
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE.md
|
||||
text: |-
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
notices: []
|
||||
30
.licenses/npm/@actions/tool-cache.dep.yml
generated
30
.licenses/npm/@actions/tool-cache.dep.yml
generated
@@ -1,20 +1,30 @@
|
||||
---
|
||||
name: "@actions/tool-cache"
|
||||
version: 1.7.2
|
||||
version: 1.5.4
|
||||
type: npm
|
||||
summary: Actions tool-cache lib
|
||||
homepage: https://github.com/actions/toolkit/tree/main/packages/tool-cache
|
||||
homepage: https://github.com/actions/toolkit/tree/master/packages/tool-cache
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE.md
|
||||
text: |-
|
||||
The MIT License (MIT)
|
||||
- sources: Auto-generated MIT license text
|
||||
text: |
|
||||
MIT License
|
||||
|
||||
Copyright 2019 GitHub
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
notices: []
|
||||
|
||||
39
.licenses/npm/uuid-3.3.2.dep.yml
generated
Normal file
39
.licenses/npm/uuid-3.3.2.dep.yml
generated
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
name: uuid
|
||||
version: 3.3.2
|
||||
type: npm
|
||||
summary: RFC4122 (v1, v4, and v5) UUIDs
|
||||
homepage: https://github.com/kelektiv/node-uuid#readme
|
||||
license: mit
|
||||
licenses:
|
||||
- sources: LICENSE.md
|
||||
text: |
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2010-2016 Robert Kieffer and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
notices:
|
||||
- sources: AUTHORS
|
||||
text: |-
|
||||
Robert Kieffer <robert@broofa.com>
|
||||
Christoph Tavan <dev@tavan.de>
|
||||
AJ ONeal <coolaj86@gmail.com>
|
||||
Vincent Voyer <vincent@zeroload.net>
|
||||
Roman Shtylman <shtylman@gmail.com>
|
||||
@@ -41,7 +41,7 @@ nvm lts syntax: `lts/erbium`, `lts/fermium`, `lts/*`
|
||||
|
||||
## Caching packages dependencies
|
||||
|
||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under hood for caching dependencies but requires less configuration settings. Supported package managers are `npm`, `yarn`, `pnpm` (v6.10+). The `cache` input is optional, and caching is turned off by default.
|
||||
The action has a built-in functionality for caching and restoring dependencies. It uses [actions/cache](https://github.com/actions/cache) under the hood for caching dependencies but requires less configuration settings. Supported package managers are `npm`, `yarn`, `pnpm` (v6.10+). The `cache` input is optional, and caching is turned off by default.
|
||||
|
||||
The action defaults to search for the dependency file (`package-lock.json` or `yarn.lock`) in the repository root, and uses its hash as a part of the cache key. Use `cache-dependency-path` for cases when multiple dependency files are used, or they are located in different subdirectories.
|
||||
|
||||
|
||||
452
Riri
Normal file
452
Riri
Normal file
@@ -0,0 +1,452 @@
|
||||
Main logo
|
||||
Search for transactions, addresses, blocks and embedded text data...
|
||||
|
||||
|
||||
API
|
||||
API documentation
|
||||
API documentation
|
||||
Introduction
|
||||
General stats endpoints
|
||||
Retrieve overall information about blockchains and tokens
|
||||
Stats on multiple blockchains at once
|
||||
Bitcoin-like blockchain stats
|
||||
Ethereum-like blockchain stats
|
||||
Ripple-like blockchain stats
|
||||
Stellar-like blockchain stats
|
||||
Monero-like blockchain stats
|
||||
Cardano-like blockchain stats
|
||||
Mixin-like DAG stats
|
||||
Tezos-like blockchain stats
|
||||
EOS-like blockchain stats
|
||||
Cross-chain token stats
|
||||
Omni Layer stats
|
||||
ERC-20 stats
|
||||
Dashboard endpoints
|
||||
Retrieve information about various entities in a neat format from our databases
|
||||
Raw data endpoints
|
||||
Retrieve raw information about various entities directly from our full nodes
|
||||
Infinitable endpoints
|
||||
SQL-like queries: filter, sort, and aggregate blockchain data
|
||||
Misc endpoints
|
||||
Privacy-o-meter
|
||||
News aggregator
|
||||
Support
|
||||
Show all
|
||||
Blockchair API
|
||||
Blockchair API
|
||||
Blockchair API provides developers, researchers, and businesses with access to data contained in 19 blockchains
|
||||
Explore pricing plans
|
||||
Stats on multiple blockchains at once
|
||||
Allows to retrieve the most important stats on all blockchains we support via just one API request.
|
||||
|
||||
Endpoint:
|
||||
|
||||
https://api.blockchair.com/stats
|
||||
If you require data on just one blockchain, please use https://api.blockchair.com/{:chain}/stats instead.
|
||||
|
||||
Output:
|
||||
|
||||
data contains an array with stats on 15 blockchains we support at once:
|
||||
|
||||
Bitcoin
|
||||
Bitcoin Cash
|
||||
Ethereum
|
||||
Litecoin
|
||||
Bitcoin SV
|
||||
Dogecoin
|
||||
Dash
|
||||
Ripple
|
||||
Groestlcoin
|
||||
Stellar
|
||||
Monero
|
||||
Cardano
|
||||
Zcash
|
||||
Mixin
|
||||
Tezos
|
||||
eCash
|
||||
and on 3 cross-chain tokens:
|
||||
|
||||
Tether (USDT)
|
||||
USD Coin (USDC)
|
||||
Binance USD (BUSD)
|
||||
Note that Bitcoin Testnet stats are not included in this output.
|
||||
|
||||
Description of the fields is available in the next three sections of documentation.
|
||||
|
||||
Example output:
|
||||
|
||||
https://api.blockchair.com/stats:
|
||||
|
||||
{
|
||||
"data": {
|
||||
"bitcoin": {
|
||||
"data": {
|
||||
"blocks": 599952,
|
||||
...
|
||||
}
|
||||
},
|
||||
"bitcoin-cash": {
|
||||
"data": {
|
||||
"blocks": 605134,
|
||||
...
|
||||
}
|
||||
},
|
||||
"bitcoin-sv": {
|
||||
"data": {
|
||||
"blocks": 604886,
|
||||
...
|
||||
}
|
||||
},
|
||||
"ethereum": {
|
||||
"data": {
|
||||
"blocks": 8766052,
|
||||
...
|
||||
}
|
||||
},
|
||||
"litecoin": {
|
||||
"data": {
|
||||
"blocks": 1721519,
|
||||
...
|
||||
}
|
||||
},
|
||||
"dogecoin": {
|
||||
"data": {
|
||||
"blocks": 2941267,
|
||||
...
|
||||
}
|
||||
},
|
||||
"dash": {
|
||||
"data": {
|
||||
"blocks": 1156197,
|
||||
...
|
||||
}
|
||||
},
|
||||
"ripple": {
|
||||
"data": {
|
||||
"ledgers": 50795982,
|
||||
...
|
||||
}
|
||||
},
|
||||
"groestlcoin": {
|
||||
"data": {
|
||||
"blocks": 2801282,
|
||||
...
|
||||
}
|
||||
},
|
||||
"stellar": {
|
||||
"data": {
|
||||
"ledgers": 26968006,
|
||||
...
|
||||
}
|
||||
},
|
||||
"monero": {
|
||||
"data": {
|
||||
"blocks": 2014108,
|
||||
...
|
||||
}
|
||||
},
|
||||
"cardano": {
|
||||
"data": {
|
||||
"blocks": 3673733,
|
||||
...
|
||||
}
|
||||
},
|
||||
"zcash": {
|
||||
"data": {
|
||||
"blocks": 756512,
|
||||
...
|
||||
}
|
||||
},
|
||||
"mixin": {
|
||||
"data": {
|
||||
"snapshots": 18632532,
|
||||
...
|
||||
}
|
||||
},
|
||||
"tezos": {
|
||||
"data": {
|
||||
"blocks": 974144,
|
||||
...
|
||||
}
|
||||
},
|
||||
"cross-chain": {
|
||||
"tether": {
|
||||
"data": ...
|
||||
},
|
||||
"usd-coin": {
|
||||
"data": ...
|
||||
},
|
||||
"binance-usd": {
|
||||
"data": ...
|
||||
}
|
||||
}
|
||||
},
|
||||
"context": {
|
||||
"code": 200,
|
||||
...
|
||||
}
|
||||
}
|
||||
}
|
||||
Endpoint:
|
||||
|
||||
https://api.blockchair.com/stellar/stats
|
||||
Output:
|
||||
|
||||
data contains an array with blockchain statistics:
|
||||
|
||||
ledgers — total number of ledgers
|
||||
circulation — number of coins in circulation (in stroops)
|
||||
best_ledger_height — the latest ledger number
|
||||
best_ledger_hash — the latest ledger hash
|
||||
best_ledger_time — the latest ledger time
|
||||
ledgers_24h — number of ledgers closed over the last 24 hours
|
||||
transactions_24h — number of transactions confirmed over the last 24 hours
|
||||
successful_transactions_24h— number of successful transactions over the last 24 hours
|
||||
failed_transactions_24h— number of failed transactions over the last 24 hours
|
||||
operations_24h — number of operations over the last 24 hours
|
||||
average_transaction_fee_24h — average transaction fee over the last 24 hours
|
||||
average_transaction_fee_usd_24h — the same in USD
|
||||
market_price_usd — average market price of 1 coin in USD (market data source: CoinGecko)
|
||||
market_price_btc — average market price of 1 coin in BTC
|
||||
market_price_usd_change_24h_percentage — market price change in percent for 24 hours
|
||||
market_cap_usd — market capitalization (coins in circulation * price per coin in USD)
|
||||
market_dominance_percentage — dominance index (how much % of the total cryptocurrency market is the market capitalization of the coin)
|
||||
countdowns (optional) — an optional array of events ([event, time_left] format), where time_left is the number of seconds till the event
|
||||
Example output:
|
||||
|
||||
https://api.blockchair.com/stellar/stats:
|
||||
|
||||
{
|
||||
"data": {
|
||||
"ledgers": 26602978,
|
||||
"best_ledger_height": 26602978,
|
||||
"best_ledger_hash": "3151f16e9a6ce9ee43f57a068c83a04c7e864ccc7d1027519d42aab79e13b40f",
|
||||
"best_ledger_time": "2019-11-02 16:42:01",
|
||||
"circulation": 1054439020873472900,
|
||||
"ledgers_24h": 15643,
|
||||
"transactions_24h": 461072,
|
||||
"successful_transactions_24h": 285958,
|
||||
"failed_transactions_24h": 175114,
|
||||
"operations_24h": 1085466,
|
||||
"average_transaction_fee_24h": 283.5731513695005,
|
||||
"average_transaction_fee_usd_24h": 0.000001991250668916633,
|
||||
"market_price_usd": 0.07022,
|
||||
"market_price_btc": 0.0000075229454120425,
|
||||
"market_price_usd_change_24h_percentage": 3.41847,
|
||||
"market_cap_usd": 1406714595,
|
||||
"market_dominance_percentage": 0.56
|
||||
},
|
||||
"context": {
|
||||
"code": 200,
|
||||
...
|
||||
}
|
||||
}
|
||||
Request cost formula:
|
||||
|
||||
Always 1.
|
||||
|
||||
Explore visualization on our front-end:
|
||||
|
||||
https://blockchair.com/stellar
|
||||
Request cost formula:
|
||||
rs, and businesses with access to data contained in 19 blockchains
|
||||
Explore pricing plans
|
||||
Bitcoin-like blockchain stats
|
||||
Endpoints:
|
||||
|
||||
https://api.blockchair.com/bitcoin/stats
|
||||
https://api.blockchair.com/bitcoin-cash/stats
|
||||
https://api.blockchair.com/litecoin/stats
|
||||
https://api.blockchair.com/bitcoin-sv/stats
|
||||
https://api.blockchair.com/dogecoin/stats
|
||||
https://api.blockchair.com/dash/stats
|
||||
https://api.blockchair.com/groestlcoin/stats
|
||||
https://api.blockchair.com/zcash/stats
|
||||
https://api.blockchair.com/ecash/stats
|
||||
https://api.blockchair.com/bitcoin/testnet/stats
|
||||
Output:
|
||||
|
||||
data contains an array with blockchain statistics:
|
||||
|
||||
blocks — total number of blocks (note that it's 1 more than the latest block number as there is block #0)
|
||||
transactions — total number of transactions
|
||||
outputs — total number of outputs (including spent)
|
||||
circulation — number of coins in circulation (in satoshi)
|
||||
blockchain_size — total size of all blocks in bytes (note: it's not the size of a full node, it's just bare blocks; nodes are bigger in size as they use database indexing, etc)
|
||||
nodes— number of full network nodes (it's an approximate number and actually not a blockchain metric)
|
||||
difficulty — current mining difficulty
|
||||
hashrate_24h — approximated hashrate over the last 24 hours (returned as a string as it doesn't fit into an integer)
|
||||
next_retarget_time_estimate — approximate timestamp of the next difficulty retarget (this field is available for Bitcoin and Litecoin only)
|
||||
next_difficulty_estimate — approximate next difficulty value (this field is available for Bitcoin and Litecoin only)
|
||||
best_block_height — the latest block height
|
||||
best_block_hash — the latest block hash
|
||||
best_block_time — the latest block time
|
||||
mempool_transactions — number of transactions in the mempool
|
||||
mempool_outputs — number of outputs in the mempool
|
||||
mempool_size — mempool size in bytes
|
||||
mempool_tps — number of transactions per second added to the mempool
|
||||
mempool_total_fee_usd — sum of transaction fees in the mempool, in USD
|
||||
blocks_24h — number of blocks mined over the last 24 hours
|
||||
transactions_24h — number of transactions confirmed over the last 24 hours
|
||||
volume_24h — total monetary volume of transactions over the last 24 hours
|
||||
average_transaction_fee_24h — average transaction fee over the last 24 hours
|
||||
average_transaction_fee_usd_24h — the same in USD
|
||||
median_transaction_fee_24h— median transaction fee over the last 24 hours
|
||||
median_transaction_fee_usd_24h — the same in USD
|
||||
inflation_24h— number of new coins mined over the last 24 hours (in satoshi), this can be considered as the daily inflation
|
||||
inflation_usd_24h — the same in USD
|
||||
cdd_24h— total coindays destroyed over the last 24 hours
|
||||
largest_transaction_24h — array of hash and value_usd — biggest payment over the last 24 hours
|
||||
market_price_usd — average market price of 1 coin in USD (market data source: CoinGecko)
|
||||
market_price_btc — average market price of 1 coin in BTC (for Bitcoin it always returns 1)
|
||||
market_price_usd_change_24h_percentage — market price change in percent for 24 hours
|
||||
market_cap_usd — market capitalization (coins in circulation * price per coin in USD)
|
||||
market_dominance_percentage — dominance index (how much % of the total cryptocurrency market is the market capitalization of the coin)
|
||||
countdowns (optional) — an optional array of events ([event, time_left] format), where time_left is the number of seconds till the event
|
||||
suggested_transaction_fee_per_byte_sat — suggests a proper transaction fee in satoshi per byte based on the latest block
|
||||
hodling_addresses — the total number of addresses with positive balance
|
||||
Example output:
|
||||
|
||||
https://api.blockchair.com/bitcoin/stats:
|
||||
|
||||
{
|
||||
"data": {
|
||||
"blocks": 690165,
|
||||
"transactions": 654248075,
|
||||
"outputs": 1776138129,
|
||||
"circulation": 1875100229497096,
|
||||
"blocks_24h": 130,
|
||||
"transactions_24h": 229726,
|
||||
"difficulty": 14363025673660,
|
||||
"volume_24h": 187713267560047,
|
||||
"mempool_transactions": 6591,
|
||||
"mempool_outputs": 16532,
|
||||
"mempool_size": 5076549,
|
||||
"mempool_tps": 5.416666666666667,
|
||||
"mempool_total_fee_usd": 14219.1005,
|
||||
"best_block_height": 690164,
|
||||
"best_block_hash": "000000000000000000023fcb3703bf89ddbfc1ef5109f21c2387a9d630b78c6e",
|
||||
"best_block_time": "2021-07-08 14:37:00",
|
||||
"blockchain_size": 353767186147,
|
||||
"average_transaction_fee_24h": 14421,
|
||||
"inflation_24h": 81250000000,
|
||||
"median_transaction_fee_24h": 5269,
|
||||
"cdd_24h": 3696149.5996842394,
|
||||
"mempool_outputs": 44316,
|
||||
"largest_transaction_24h": {
|
||||
"hash": "7a83c11f42dadad1c6916cceb079835aa09ed70127dba7cdf15aa904277c907d",
|
||||
"value_usd": 773548352
|
||||
},
|
||||
"nodes": 8502,
|
||||
"hashrate_24h": "92904707138521187685",
|
||||
"inflation_usd_24h": 26587437.5,
|
||||
"average_transaction_fee_usd_24h": 4.719001232335435,
|
||||
"median_transaction_fee_usd_24h": 1.724338485,
|
||||
"market_price_usd": 32723,
|
||||
"market_price_btc": 1,
|
||||
"market_price_usd_change_24h_percentage": -5.7534,
|
||||
"market_cap_usd": 613578128025,
|
||||
"market_dominance_percentage": 43.03,
|
||||
"next_retarget_time_estimate": "2021-07-18 19:23:20",
|
||||
"next_difficulty_estimate": 17958208674260,
|
||||
"countdowns": [],
|
||||
"suggested_transaction_fee_per_byte_sat": 17,
|
||||
"hodling_addresses": 38343147
|
||||
},
|
||||
"context": {
|
||||
"code": 200,
|
||||
...
|
||||
}
|
||||
}
|
||||
|
||||
Always 1.
|
||||
|
||||
Explore visualizations on our front-end:
|
||||
|
||||
https://blockchair.com/
|
||||
https://blockchair.com/compare
|
||||
Explorers
|
||||
Bitcoin
|
||||
Ethereum
|
||||
Litecoin
|
||||
Cardano
|
||||
Ripple
|
||||
Polkadot
|
||||
Dogecoin
|
||||
Solana new
|
||||
Bitcoin Cash
|
||||
Stellar
|
||||
Monero
|
||||
EOS
|
||||
Kusama
|
||||
Bitcoin SV
|
||||
eCash
|
||||
Zcash
|
||||
Dash
|
||||
Mixin
|
||||
Groestlcoin
|
||||
Tether USD
|
||||
USD Coin
|
||||
Binance USD
|
||||
Data
|
||||
API
|
||||
Database dumps
|
||||
Full node dumps
|
||||
Charts
|
||||
Services
|
||||
Blockchair News
|
||||
Blockchair Donut
|
||||
Blockchair Awesome
|
||||
Products
|
||||
Transaction receipts
|
||||
Wallet statements
|
||||
Portfolio tracker
|
||||
Broadcast transaction
|
||||
Privacy-o-meter
|
||||
Node explorers
|
||||
Release monitor
|
||||
Halving countdown
|
||||
Compare blockchains
|
||||
Get Blockchair extension
|
||||
Useful links
|
||||
About Blockchair
|
||||
FAQ
|
||||
Changelog
|
||||
Careers
|
||||
Terms of service
|
||||
Privacy policy
|
||||
Blockchair Onion v3 URL
|
||||
Blockchair Onion v2 URL
|
||||
For partners
|
||||
Partnerships
|
||||
Advertise with us
|
||||
Brand kit
|
||||
For developers
|
||||
Submit a bug or request
|
||||
Bug bounty program
|
||||
API documentation
|
||||
Status
|
||||
Social
|
||||
Twitter
|
||||
Telegram
|
||||
GitHub
|
||||
LinkedIn
|
||||
Languages
|
||||
English
|
||||
Español
|
||||
Français
|
||||
Italiano
|
||||
Nederlands
|
||||
Português
|
||||
Русский
|
||||
中文
|
||||
فارسی
|
||||
Вahasa Indonesia
|
||||
Türkçe
|
||||
日本語
|
||||
한국어
|
||||
Deutsch
|
||||
© 2021 Blockchair
|
||||
Footer Blockchair logoNo 3d party trackers
|
||||
Works without javascript
|
||||
1.010-3049-g4e40c42b Thu Feb 3 12:14:18 UTC 2022
|
||||
@@ -368,7 +368,6 @@ describe('setup-node', () => {
|
||||
inputs['node-version'] = version;
|
||||
inputs['architecture'] = arch;
|
||||
inputs['always-auth'] = false;
|
||||
inputs['cache'] = '';
|
||||
inputs['token'] = 'faketoken';
|
||||
|
||||
let expectedUrl =
|
||||
|
||||
2010
dist/cache-save/index.js
vendored
2010
dist/cache-save/index.js
vendored
File diff suppressed because it is too large
Load Diff
4321
dist/setup/index.js
vendored
4321
dist/setup/index.js
vendored
File diff suppressed because it is too large
Load Diff
56
package-lock.json
generated
56
package-lock.json
generated
@@ -37,27 +37,11 @@
|
||||
}
|
||||
},
|
||||
"@actions/core": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
||||
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
|
||||
"integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
|
||||
"requires": {
|
||||
"@actions/http-client": "^2.0.1",
|
||||
"uuid": "^8.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/http-client": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.0.tgz",
|
||||
"integrity": "sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==",
|
||||
"requires": {
|
||||
"tunnel": "^0.0.6"
|
||||
}
|
||||
},
|
||||
"uuid": {
|
||||
"version": "8.3.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
|
||||
}
|
||||
"@actions/http-client": "^1.0.11"
|
||||
}
|
||||
},
|
||||
"@actions/exec": {
|
||||
@@ -100,22 +84,30 @@
|
||||
"integrity": "sha512-J8KuFqVPr3p6U8W93DOXlXW6zFvrQAJANdS+vw0YhusLIq+bszW8zmK2Fh1C2kDPX8FMvwIl1OUcFgvJoXLbAg=="
|
||||
},
|
||||
"@actions/tool-cache": {
|
||||
"version": "1.7.2",
|
||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.7.2.tgz",
|
||||
"integrity": "sha512-GYlcgg/PK2RWBrGG2sFg6s7im3S94LMKuqAv8UPDq/pGTZbuEvmN4a95Fn1Z19OE+vt7UbUHeewOD5tEBT+4TQ==",
|
||||
"version": "1.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.5.4.tgz",
|
||||
"integrity": "sha512-72ijIBM0s/dx2D0eYYxaxaeKWeVatOK8OHPNctJ5cyKjZp1j12egX+nW/N+tnQRNMVxTp9WjudZO5wizUBxC/w==",
|
||||
"requires": {
|
||||
"@actions/core": "^1.2.6",
|
||||
"@actions/core": "^1.2.3",
|
||||
"@actions/exec": "^1.0.0",
|
||||
"@actions/http-client": "^1.0.8",
|
||||
"@actions/io": "^1.1.1",
|
||||
"@actions/io": "^1.0.1",
|
||||
"semver": "^6.1.0",
|
||||
"uuid": "^3.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/io": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.2.tgz",
|
||||
"integrity": "sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw=="
|
||||
"@actions/core": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.4.tgz",
|
||||
"integrity": "sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg=="
|
||||
},
|
||||
"@actions/http-client": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.8.tgz",
|
||||
"integrity": "sha512-G4JjJ6f9Hb3Zvejj+ewLLKLf99ZC+9v+yCxoYf9vSyH+WkzPLB2LuUtRMGNkooMqdugGBFStIKXOuvH1W+EctA==",
|
||||
"requires": {
|
||||
"tunnel": "0.0.6"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3770,9 +3762,9 @@
|
||||
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="
|
||||
},
|
||||
"uuid": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
||||
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
|
||||
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
|
||||
},
|
||||
"v8-to-istanbul": {
|
||||
"version": "8.1.0",
|
||||
|
||||
@@ -24,13 +24,13 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^1.0.8",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/core": "^1.6.0",
|
||||
"@actions/exec": "^1.1.0",
|
||||
"@actions/github": "^1.1.0",
|
||||
"@actions/glob": "^0.2.0",
|
||||
"@actions/http-client": "^1.0.11",
|
||||
"@actions/io": "^1.0.2",
|
||||
"@actions/tool-cache": "^1.7.2",
|
||||
"@actions/tool-cache": "^1.5.4",
|
||||
"semver": "^6.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
"compilerOptions": {
|
||||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"outDir": "./lib", /* Redirect output structure to the directory. */
|
||||
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
"sourceMap": true,
|
||||
|
||||
Reference in New Issue
Block a user