How do I implement the issuance of a loan with a pledge?
I want to send a loan from a multi-signature account and receive a pledge in the form of custom tokens in a single transaction.
At the moment I'm stuck in this place:
const transaction = new Stellar.TransactionBuilder(loan)
.addOperation(Stellar.Operation.payment({
destination: borrowerPublicKey,
asset: Stellar.Asset.native(),
amount
}))
.addOperation(... receive custom tokens)
.build();