Function getLinkingArguments

  • Generates the arguments for the extrinsic that links an account to a DID.

    Returns

    The arguments for the call that links account and DID.

    Parameters

    • accountAddress: string

      Address of the account to be linked.

    • validUntil: BN

      Last blocknumber that this challenge is valid for.

    • signature: Uint8Array

      The signature for the linking challenge.

    • type: KeypairType

      The key type used to sign the challenge.

    Returns Promise<AssociateAccountToChainResult>