Skip to main content

Construction API implementation

Intermediate
Tutorial

Overview

The construction API allows for offline signing of transactions and then posting them on ICP at a later point in time. It is recommended to first go through flow of operations of the construction API to gain an understanding of how it works, what endpoints to call with what parameters, and where the user has to take action upon receiving certain responses.

Currently, the construction API of Rosetta supports only one category of transactions, which is the transfer of assets. According to the ICRC-1 and ICRC-2 standards this can be done in the following ways:

  • Direct transfers: This is the most basic functionality. In accordance with the ICRC-1 standard you can use Rosetta to transfer ICRC tokens.
  • Approve spender: You can approve a spender to spend your tokens for you. This feature adheres to the ICRC-2 standard.