DAPI Endpoints
Overview of available endpoints
Endpoint Overview
DAPI currently provides 2 types of endpoints: JSON-RPC and gRPC. The JSON-RPC endpoints expose some layer 1 information while the gRPC endpoints support layer 2 as well as streaming of events related to blocks and transactions/transitions.
JSON-RPC Endpoints
gRPC Migration
The remaining JSON-RPC endpoints will be migrated to gRPC in a future release
Layer | Endpoint | Description |
---|---|---|
1 | getAddressSummary | Returns summary information for provided address(es) |
1 | getBestBlockHash | Returns block hash of the chaintip |
1 | getBlockHash | Returns block hash of the requested block |
1 | getMnListDiff | Returns masternode list diff for the provided block hashes |
1 | getUTXO | Returns unspent transaction outputs for a given address |
gRPC Endpoints
Layer | Endpoint | |
---|---|---|
1 | getBlock | Returns information for the requested block |
1 | getStatus | Returns blockchain status information |
1 | getTransaction | Returns details for the requested transaction |
1 | sendTransaction | Submits the provided transaction |
1 | subscribeTo TransactionsWithProofs | Returns transactions matching the provided bloom filter along with the associated islock message and merkle block |
2 | applyStateTransition | Applies the provided State Transition |
2 | getIdentity | Returns the requested identity |
2 | getIdentityByFirstPublicKey | Returns the identity associated with the provided public key |
2 | getIdentityIdByFirstPublicKey | Returns the identity ID associated with the provided public key |
2 | getDataContract | Returns the requested data contract |
2 | getDocuments | Returns the requested document(s) |
Updated over 4 years ago