Skip to content

Endpoints for smart contract integration

We have collected articles that help you integrate your application with the rest of Partisia Platform in this section.

Connecting your application with your private deployment is possible by interacting the REST server, that reader nodes runs, while getting the updates from the block producer nodes.

The following sections explains some of the endpoints you can use to get info about the transactions and events that is executed on your private deployment. You can also get the current state of your deployed smart contracts and MPC smart contracts.

You can get information about blocks, transactions, contract state and more through the REST API. The REST API is also be used for sending signed transactions to the blockchain.

The REST API is available on any block producing node, you can also spin up a reader node, to minimize the load on your block producing nodes.

We also publish a number of libraries that help create transactions and using the REST API.

The endpoint to the OpenAPI is exposed by reader nodes and blockchain nodes. You can find all the different endpoints and all returned data types at http://docker:9432/openapi.

Below is a collection of older rest endpoints that are not served from Open API server.

  • Get a specified event from the event hash:
    • http://localhost/blockchain/event/{{eventIdentifier}}
      • Insert the Hash of the event instead of {{eventIdentifier}}, e.g. for the event with the hash 7e3b8b053d5078af01de73f0c474fda1f9f01d97f9d850fcce0682a1431d2da2 the request would be http://docker:9432/blockchain/transaction/7e3b8b053d5078af01de73f0c474fda1f9f01d97f9d850fcce0682a1431d2da2