DAPI Endpoints#
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#
Layer |
Endpoint |
Description |
---|---|---|
1 |
Returns block hash of the chaintip |
|
1 |
Returns block hash of the requested block |
|
1 |
|
Replaced by |
gRPC Endpoints#
Core gRPC Service#
Layer |
Endpoint |
|
---|---|---|
1 |
Broadcasts the provided transaction |
|
1 |
Added in Dash Platform v1.0.0 |
|
1 |
Disabled in Dash Platform v1.0.0 |
|
1 |
Added in Dash Platform v1.0.0 |
|
1 |
Disabled in Dash Platform v1.0.0 |
|
1 |
|
Deprecated in Dash Platform v1.0.0 |
1 |
Returns details for the requested transaction |
|
1 |
Returns the requested block headers along with the associated ChainLocks. |
|
1 |
Added in Dash Platform v1.0.0 |
|
1 |
Returns transactions matching the provided bloom filter along with the associated |
Platform gRPC Service#
In addition to providing the request data, the following endpoints can also provide proofs that the data returned is valid and complete. The endpoints are versioned so updates can be made to them without introducing issues for endpoint consumers.
Layer |
Endpoint |
|
---|---|---|
2 |
Broadcasts the provided State Transition |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
Added in Dash Platform v1.3.0 |
|
2 |
Added in Dash Platform v1.3.0 |
|
2 |
Returns the requested identity |
|
2 |
Returns the requested identity’s balance |
|
2 |
Returns the requested identity’s balance and revision |
|
2 |
Returns the identity associated with the provided public key hash |
|
2 |
Returns the identity contract nonce |
|
2 |
Returns the requested identity keys |
|
2 |
Returns the current identity nonce |
|
2 |
|
Removed in Dash Platform v1.0.0 |
2 |
Added in Dash Platform v1.3.0 |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
|
Removed in Dash Platform v1.0.0 |
2 |
Returns the requested data contract |
|
2 |
Returns the requested data contracts |
|
2 |
Returns the requested data contract history |
|
2 |
Returns the requested document(s) |
|
2 |
Returns information about the requested epoch(s) |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
Added in Dash Platform v1.0.0 |
|
2 |
|
Disabled for external use in Dash Platform v1.0.0 |
2 |
Returns the number of votes cast for each protocol version |
|
2 |
Returns protocol version upgrade status |
|
2 |
Added in Dash Platform v1.2.0 |
|
2 |
Added in Dash Platform v1.1.0 |
|
2 |
Retrieves vote polls that will end within a specified date range |
|
2 |
Responds with the state transition hash and either a proof that the state transition was confirmed in a block or an error |
Note
The previous version of documentation can be viewed here.