Function getLinkingArguments

  • Generates the arguments for the extrinsic that links an account to a 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>

    The arguments for the call that links account and DID.