input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.77k stars 630 forks source link

Questions about query blocks #4267

Closed shenyaqi9527 closed 4 years ago

shenyaqi9527 commented 4 years ago

How to query block information through API

erikd commented 4 years ago

The explorer webapi is documented at: https://cardanodocs.com/technical/explorer/api/

However, I would advise against using the explorer in this repo (due to known bugs) and instead use the explorer in the https://github.com/input-output-hk/cardano-explorer/ respository which was coded to match the explorer documentation above as closely as possible.

shenyaqi9527 commented 4 years ago

@erikd How to create addresses offline, sign some examples of broadcast transactions offline, preferably in Java, thanks.

erikd commented 4 years ago

In the cardano-node repository there is a CLI that allows the creation of a private/public key pairs and transactions (yes it works offline).

In the cardano-explorer repo there is an exectuable that allows a pre-created transaction to be published to the network.