What did AIG receive for promising to pay Party A in the event that Party B defaulted?
The basic CDS transaction involved AIG receiving a premium in exchange for a promise to pay money to party A in the event party B defaulted.