The 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.
Example
{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/operations/122511124621283329"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/452a180790caf4dbe658d996316cd727ce5573f5f0a77790da540cc49214fe80"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/122511124621283329/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=122511124621283329"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=122511124621283329"
}
},
"id": "122511124621283329",
"paging_token": "122511124621283329",
"transaction_successful": true,
"source_account": "GCAXBKU3AKYJPLQ6PEJ6L47KOATCYCBJ2NFRGAK7FUUA2DCEUC265SU2",
"type": "payment",
"type_i": 1,
"created_at": "2020-03-04T22:46:47Z",
"transaction_hash": "452a180790caf4dbe658d996316cd727ce5573f5f0a77790da540cc49214fe80",
"asset_type": "credit_alphanum4",
"asset_code": "NGNT",
"asset_issuer": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
"from": "GCAXBKU3AKYJPLQ6PEJ6L47KOATCYCBJ2NFRGAK7FUUA2DCEUC265SU2",
"to": "GC2QCKFI3DOBEYVBONPVNA2PMLU225IKKI6XPENMWR2CTWSFBAOU7T34",
"amount": "5.0000000"
}