Skip to main content

Payment Object

Sends an amount in a specific asset to a destination account.

See the Payment errors.

  • ATTRIBUTEDATA TYPE

    DESCRIPTION

  • asset_typestring

    The type of asset being sent. Either native, credit_alphanum4, or credit_alphanum12.

  • asset_codestring

    The code for the asset being sent. Appears if the asset_type is not native.

  • asset_issuerstring

    The Stellar address of the issuer of the asset being sent. Appears if the asset_type is not native.

  • fromstring

    The payment sender’s public key.

  • tostring

    The payment recipient’s public key.

  • amountstring

    Amount sent.