See the reference documentation for Custom Actions for guidance on how to use this configuration definition.

This sample connects any Smart Clause® that emits a Payment Obligation to the Stellar Transfer connector. The amount of the Stellar transfer is specified as the amount of the MonetaryAmount in the emitted Payment Obligation.

{  
   "$class":"io.clause.outbound.physical.payments.crypto.stellar.StellarTransfer",
   "toAccount":"TO_ACCOUNT",
   "amount":response.amount.doubleValue,
   "serverUrl":"https://horizon-testnet.stellar.org",
   "memo":"My Stellar transfer",
   "useTestNetwork":true,
   "sourceKeySecret":"MY_SOURCE_KEY_SECRET",
   "fromAccount" : "FROM_ACCOUNT"
}

In addition you may optionally specify an assetType attribute. If assetType is not specified then the transfer defaults to transferring Lumens.

Creating an Account and Getting the Private Key

Please refer to the Stellar documentation for how to create an account and how to get your source key secret. Fore example, you can use the Stellar friend bot to create an account on the Stellar test network with some Lumens that your contract can transfer to another Stellar account.