ChainSig.js Documentation - v1.1.6
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Gets the native token balance and decimals for a given address

      Parameters

      • address: string

        The address to check

      Returns Promise<{ balance: bigint; decimals: number }>

      Promise resolving to an object containing: - balance: The balance as a bigint, in the chain's base units - decimals: The number of decimals used to format the balance

    • Uses Sig Network Key Derivation Function to derive the address and public key. from a signer ID and string path.

      Parameters

      • predecessor: string

        The id/address of the account requesting signature

      • path: string

        The string path used to derive the key

      Returns Promise<{ address: string; publicKey: string }>

      Promise resolving to the derived address and public key

    • Adds Sig Network MPC-generated signatures to an unsigned transaction.

      Parameters

      • params: { transaction: Transaction; rsvSignatures: Signature; senderAddress: string }

        Parameters for adding signatures

        • transaction: Transaction

          The unsigned transaction to add signatures to

        • rsvSignatures: Signature

          Array of RSV signatures generated through MPC. Must be in the same order as the payloads returned by prepareTransactionForSigning()

        • senderAddress: string

      Returns string

      The serialized signed transaction ready for broadcast

    • Broadcasts a signed transaction to the network.

      Parameters

      • txSerialized: string

        The serialized signed transaction

      Returns Promise<{ hash: string }>

      Promise resolving to an object containing the transaction hash/ID