DAPI Endpoints#
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.
Platform Endpoints#
In addition to providing the requested 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.
Contested Resources#
Endpoint |
Description |
---|---|
Added in Dash Platform v1.0.0 |
|
Added in Dash Platform v1.0.0 |
|
Added in Dash Platform v1.0.0 |
|
Added in Dash Platform v1.0.0 |
|
Retrieves vote polls that will end within a specified date range |
Data Contracts and Documents#
Endpoint |
Description |
---|---|
Returns the requested data contract |
|
Returns the requested data contracts |
|
Returns the requested data contract history |
|
Returns the requested document(s) |
Identities#
Endpoint |
Description |
---|---|
Returns the requested identity |
|
Returns the requested identity’s balance |
|
Returns the requested identity’s balance and revision |
|
Added in Dash Platform v2.0.0 |
|
Returns the identity associated with the provided public key hash |
|
Returns the identity contract nonce |
|
Returns the requested identity keys |
|
Returns the current identity nonce |
|
Added in Dash Platform v1.3.0 |
|
Added in Dash Platform v1.0.0 |
Security Groups#
Added in version 2.0.0.
Security groups provide a way to distribute token configuration and update authorization across multiple identities. Each group defines a set of member identities, the voting power of each member, and the required power threshold to authorize an action. The endpoints in this section are used to retrieve information about groups and the actions they are performing.
Endpoint |
Description |
---|---|
Retrieves information about a specific group within a contract, including its members and required power. |
|
Retrieves information about multiple groups within a contract, including their members and required power. |
|
Retrieves a list of actions performed by a specific group within a contract. |
|
Retrieves the signers for a specified group action within a contract, along with their assigned power. |
State Transitions#
Endpoint |
Description |
---|---|
Broadcasts the provided State Transition |
|
Responds with the state transition hash and either a proof that the state transition was confirmed in a block or an error |
System Info#
Endpoint |
Description |
---|---|
Added in Dash Platform v1.4.0 |
|
Added in Dash Platform v1.3.0 |
|
Added in Dash Platform v1.3.0 |
|
Returns information about the requested epoch(s) |
|
Added in Dash Platform v1.0.0 |
|
Added in Dash Platform v1.0.0 |
|
|
Disabled for external use in Dash Platform v1.0.0 |
Returns the number of votes cast for each protocol version |
|
Returns protocol version upgrade status |
|
Added in Dash Platform v1.2.0 |
|
Added in Dash Platform v1.1.0 |
Tokens#
Added in version 2.0.0.
Endpoint |
Description |
---|---|
Retrieves the token balances of a specified identity. |
|
Retrieves the token balances for a list of specified identities. |
|
Retrieves information about specified tokens for a given identity. |
|
Retrieves token information for a list of specified identities. |
|
Retrieves direct purchase prices defined for the specified token IDs. |
|
Retrieves the last-claim timestamp for a token’s perpetual distribution for a specific identity. |
|
Retrieves pre-programmed distributions of a specified token. |
|
Retrieves the statuses of specified tokens. |
|
Retrieves the total supply of a specified token, including aggregated user accounts and system-held amounts. |
Core Endpoints#
The following endpoints provide information about the Core chain.
JSON-RPC Endpoints#
Endpoint |
Description |
---|---|
Returns block hash of the chaintip |
|
Returns block hash of the requested block |
gRPC Endpoints#
Endpoint |
Description |
---|---|
Broadcasts the provided transaction |
|
Added in Dash Platform v1.0.0 |
|
Disabled in Dash Platform v1.0.0 |
|
Added in Dash Platform v1.0.0 |
|
Disabled in Dash Platform v1.0.0 |
|
Returns details for the requested transaction |
|
Returns the requested block headers along with the associated ChainLocks. |
|
Added in Dash Platform v1.0.0 |
|
Returns transactions matching the provided bloom filter along with the associated |
Note
The previous version of documentation can be viewed here.