Process layout

Extrinsic

While working with the blockchain using any provided connection tool, the main instrument for changing blockchain data is extrinsic. Extrinsic is a request with certain parameters, which consists of 3 parts:

  1. Blockchain section
  2. Method section
  3. Array of arguments

Once an extrinsic has been generated, it must be signed for the chain to complete the requested changes.

Use Substrateopen in new window and Polkadotopen in new window documentation to learn more about extrinsics in general.

Extrinsic lifecycle in Unique Network connection tools

Using SDK as a connection tool involves the following sequence of actions to change something in the blockchain:

  1. SDK creates request parameters and sends them into SubstrateRest.
  2. SubstrateRest sends request parameters into SubstrateClient.
  3. SubstrateClient builds an unsigned extrinsic.
  4. SDK uses the Account package to sign an extrinsic and sends it into SubstrateRest.
  5. SubstrateRest sends a signed extrinsic into the blockchain.
  6. Blockchain changes its condition according to the signed extrinsic.
  7. SDK can request new blockchain state / extrinsic status.

Input and output data

TBD

Common errors

Error typeAdditional information
Bad payloadopen in new windowTBD
Bad signatureopen in new windowTBD
Build extrinsicopen in new windowTBD
Build queryopen in new windowTBD
Codesopen in new windowTBD
Connection failedopen in new windowTBD
Errorsopen in new windowTBD
Invalid signeropen in new windowTBD
Not foundopen in new windowTBD
Public apiopen in new windowTBD
Submit extrinsicopen in new windowTBD
Validationopen in new windowTBD
Verification failedopen in new windowTBD