Skip to content

getStoreTx

getStoreTx(input, submitter, sign): Promise<SubmittableExtrinsic>

Create a DID creation operation which includes the information provided.

The resulting extrinsic can be submitted to create an on-chain DID that has the provided keys and service endpoints.

A DID creation operation can contain at most 25 new service endpoints. Additionally, each service endpoint must respect the following conditions:

  • The service endpoint ID is at most 50 bytes long and is a valid URI fragment according to RFC#3986.
  • The service endpoint has at most 1 service type, with a value that is at most 50 bytes long.
  • The service endpoint has at most 1 URI, with a value that is at most 200 bytes long, and which is a valid URI according to RFC#3986.

Parameters

input: DidDocument | GetStoreTxInput

The DID keys and services to store, also accepts DidDocument.

submitter: 3${string}

The address authorized to submit the creation operation.

sign: GetStoreTxSignCallback

The sign callback. The authentication key has to be used.

Returns

Promise<SubmittableExtrinsic>

The SubmittableExtrinsic for the DID creation operation.

Source

did/src/Did.chain.ts:326