I'd like to send 10 USDC to a receiver, I specify the same value in 'amount' and 'sendMax' strong textfields, and I'm getting "op_over_source_max" error at the end. When specifying any amount higher than 10 in sendMax field, my transaction is successful. Could you please let me know what value should be specified in sendMax field?

StellarSdk.Operation.pathPaymentStrictReceive( {
      sendAsset:  StellarSdk.Asset.native(),
      sendMax: "10",
      destination: receiver.publicKey,
      destAsset:   new StellarSdk.Asset("USDC","GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5" ),
      destAmount: "10" ,
    } );

To create a transaction, I'm using testnet.

1 Answer 1


You are trying to send 10 USDC while only spending (sendMax) 10 XLM, unfortunately, XLM is not worth 1 USDC at the moment ;-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.