@cfxlabsinc/b2b-services
    Preparing search index...

    Look up and apply CFX-owned keypairs as kit signers.

    Keypair bytes never leave this class — callers receive KeyPairSigner instances or fully-signed Transaction values. Signing always returns a new immutable transaction; the caller is responsible for using the returned value when broadcasting.

    Index

    Constructors

    Methods

    • Sign the supplied transaction message with the given CFX signer keys, plus any caller-supplied extraSigners (e.g. a customer-owned signer that this service does not manage). All placeholder signers baked in by upstream instruction builders are stripped for the full address set so the real signatures are not masked.

      Parameters

      • __namedParameters: {
            extraSigners?: readonly KeyPairSigner[];
            message: TransactionMessage & (
                TransactionMessageWithFeePayer<string> & TransactionMessageWithLifetime
            );
            signers: SolanaKeypairType[];
        }

      Returns Promise<
          Readonly<
              { messageBytes: TransactionMessageBytes; signatures: SignaturesMap },
          > & TransactionWithLifetime,
      >

      A new fully-signed transaction. Pass it to SolanaTransactionSenderService.sendAndConfirmTransaction.

    • Add CFX signatures to an already-compiled transaction. Used when a transaction was built and serialized elsewhere — typically a customer- signed nonce transaction submitted to a workflow activity — and CFX needs to add its PAYER + NONCE_AUTHORITY (and similar) signatures just before broadcast. Returns a new transaction with the added signatures.

      Type Parameters

      • T extends Readonly<{ messageBytes: TransactionMessageBytes; signatures: SignaturesMap }>

      Parameters

      Returns Promise<T>