Constructors

  • Parameters

    • Optionalurl: string

    Returns SwitchboardSecrets

Properties

url: string

Methods

  • Parameters

    Returns Promise<void>

  • Parameters

    • userPubkey: string

      The address of the user.

    • ciphersuite: string

      'ed25519' for Solana users, 'ethers' for EVM users.

    • mrEnclave: string

      The MrEnclave value to add.

    • secretNames: string[]

      The names of the secrets to whitelist the MrEnclave value for.

    • OptionalexpiryTimestamp: number

      The timestamp that this request expires.

      Default: now + 30 seconds.

    Returns AddMrEnclavePayload

  • Parameters

    • userPubkey: string

      The address of the user.

    • ciphersuite: string

      'ed25519' for Solana users, 'ethers' for EVM users.

    • secretName: string

      The name fo the secret to delete.

    • OptionalexpiryTimestamp: number

      The timestamp that this request expires.

      Default: now + 30 seconds.

    Returns DeleteSecretPayload

  • Parameters

    Returns Promise<void>

  • Parameters

    • userPubkey: string

      The address of the user.

    • ciphersuite: string

      'ed25519' for Solana users, 'ethers' for EVM users.

    • OptionalcontactInfo: string

      Stringified contact info for the user.

    • OptionalexpiryTimestamp: number

      The timestamp that this request expires.

      Default: now + 30 seconds.

    Returns UpdateUserPayload

  • Parameters

    • userPubkey: string

      The address of the user.

    • ciphersuite: string

      'ed25519' for Solana users, 'ethers' for EVM users.

    • mrEnclave: string

      The mrEnclave value to remove.

    • OptionalexpiryTimestamp: number

      The timestamp that this request expires.

      Default: now + 30 seconds.

    Returns RemoveMrEnclavePayload

  • Parameters

    Returns Promise<void>

  • Parameters

    • userPubkey: string

      The address of the user.

    • ciphersuite: string

      'ed25519' for Solana users, 'ethers' for EVM users.

    • secretName: string

      The key of the secret.

      Keys must be unique per user.

    • secretValue: string

      The value of the secret.

    • OptionalexpiryTimestamp: number

      The timestamp that this request expires.

      Default: now + 30 seconds.

    Returns CreateSecretPayload

  • Parameters

    Returns Promise<void>

  • Parameters

    • userPubkey: string
    • ciphersuite: string

    Returns Promise<SecretsApiUser>

  • Parameters

    • userPubkey: string
    • ciphersuite: string

    Returns Promise<SecretsApiSecret[]>

  • Parameters

    Returns Promise<void>

MMNEPVFCICPMFPCPTTAAATR