データノード
プラットフォームは Dolos データノードに接続することで、ブロック、トランザクション、アカウント、アドレス、アセット、プールなどのブロックチェーンクエリエンドポイントを提供できます。データノードが設定されていない場合、これらのエンドポイントは利用できません。
Dolos はインデックス済みのブロックチェーンデータを HTTP 経由で提供します。 cardano-node はノードの同期とヘルスモニタリングのために引き続き必要です。
設定
Dolos インスタンスに接続するには、--data-node フラグを使用します。
blockfrost-platform --node-socket-path /path/to/node.socket \
--data-node http://localhost:3010データノードリクエストのカスタムタイムアウトを設定することもできます (デフォルトは 30 秒)。
blockfrost-platform --node-socket-path /path/to/node.socket \
--data-node http://localhost:3010 \
--data-node-timeout-sec 60--init ウィザードでも、設定ファイル生成時にデータノードの URL を尋ねられます。
サポートされているエンドポイント
以下のエンドポイントはデータノードなしで動作します。
GET /— ルートヘルスエンドポイントGET /metrics— Prometheus メトリクス (--no-metricsで無効化されていない場合)GET /health— ヘルスチェックGET /health/clock— サーバー時刻POST /tx/submit— トランザクション送信GET /genesis— ネットワークの genesis パラメータ
データノードが接続されると、以下のエンドポイントが利用可能になります。
アカウント
GET /accounts/{stake_address}GET /accounts/{stake_address}/rewardsGET /accounts/{stake_address}/delegationsGET /accounts/{stake_address}/registrationsGET /accounts/{stake_address}/addressesGET /accounts/{stake_address}/withdrawals
アドレス
GET /addresses/{address}/utxosGET /addresses/{address}/utxos/{asset}GET /addresses/{address}/transactions
アセット
GET /assets/{asset}
ブロック
GET /blocks/latestGET /blocks/latest/txsGET /blocks/{hash_or_number}GET /blocks/{hash_or_number}/nextGET /blocks/{hash_or_number}/previousGET /blocks/{hash_or_number}/txsGET /blocks/slot/{slot_number}
エポック
GET /epochs/latest/parametersGET /epochs/{epoch_number}/parameters
メタデータ
GET /metadata/txs/labelsGET /metadata/txs/labels/{label}GET /metadata/txs/labels/{label}/cbor
ネットワーク
GET /networkGET /network/eras
プール
GET /pools/extendedGET /pools/{pool_id}GET /pools/{pool_id}/metadataGET /pools/{pool_id}/delegators
ガバナンス
GET /governance/dreps/{drep_id}
トランザクション
GET /txs/{hash}GET /txs/{hash}/utxosGET /txs/{hash}/stakesGET /txs/{hash}/delegationsGET /txs/{hash}/withdrawalsGET /txs/{hash}/mirsGET /txs/{hash}/pool_updatesGET /txs/{hash}/pool_retiresGET /txs/{hash}/metadataGET /txs/{hash}/metadata/cborGET /txs/{hash}/redeemersGET /txs/{hash}/cbor
Docker Compose
Docker Compose を使用する場合、プラットフォームは自動的に Dolos コンテナに接続します。
dolos:
image: ghcr.io/txpipe/dolos
ports:
- 3010:3010
blockfrost-platform:
command:
- --data-node
- http://dolos:3010Last updated on