Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NeoVivid

Hierarchy

  • NeoVivid

Index

Methods

Static getDecryptedClaimByClaimID

  • Gets a claim by its claim_id and attempts to access and resolve all of its attestations. Resolutions are returned as decrypted_value on each attestation object.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • neoCNSScriptHash: ScriptHash

      The neoCNS script hash. This is relatively static and is published (Here)

    • claimId: string

      The target claim id.

    • wif: WIF

      The wif of the identity attempting to resolve the claim.

      Example:

      const neoCNS = "b434339f25b6f1bec68e99f620dfbf3ec27dacdc"
      const wif = "KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr"
      const network = {
        name: "network",
        extra: {
          neoscan: "https://p1.neo.blockchain.moonlight.io:4001/api/main_net",
          rpcServer: "https://p1.neo.blockchain.moonlight.io:60333"
        }
      }
      
      claim = await sdk.NeoVivid.getDecryptedClaimByClaimID(
         network,
         neoCNS,
         "NLBnCtGcA6Gx4NJ8",
         wif
      )

    Returns Promise<ClaimInfo>

Static getFormattedClaimByClaimID

  • This method will mux a claim id and its topic to return a pretty claim.

    Parameters

    • network: NetworkItem

      The Neo network target.

    • claimsScriptHash: ScriptHash

      The script hash of the claims contract.

    • claimId: string

      The claim id being requested.

    Returns Promise<ClaimInfo>

Generated using TypeDoc