Avalanche SDK Client
    Preparing search index...

    Function xpSignTransaction

    • Signs a transaction hash with an XP private key.

      Parameters

      • txHash: string | Uint8Array<ArrayBufferLike>

        The transaction hash to sign.

      • privateKey: string | Uint8Array<ArrayBufferLike>

        The private key to sign with.

      Returns Promise<string>

      A promise that resolves to the signature as a 0x prefixed string.