Object
import { ExampleResponse } from "components/ExampleResponse"; import { AttributeTable } from "components/AttributeTable";
When Horizon returns information about a path, it uses the following format:
- ATTRIBUTE -
source_asset_type
stringThe type for the source asset. Either
native,credit_alphanum4, orcredit_alphanum12.source_asset_code
stringThe code for the source asset.
source_asset_issuer
stringThe Stellar address of the source asset’s issuer.
source_amount
stringAn estimated cost for making a payment of destination_amount on this path. Suitable for use in the
sendMaxfield of a path payment operation.destination_asset_type
stringThe type for the destination asset. Either
native,credit_alphanum4, orcredit_alphanum12.destination_asset_code
stringThe code for the destination asset.
destination_asset_issuer
stringThe Stellar address of the destination asset’s issuer.
destination_amount
stringThe destination amount specified in the search that found this path.
path
array of objectsThe intermediary assets that this path hops through.Hide child attributes
asset_code
stringThe code for this intermediary asset.
asset_issuer
stringThe Stellar address of the intermediary asset’s issuer.
asset_type
stringThe type for the intermediary asset. Either
native,credit_alphanum4, orcredit_alphanum12.
{
"_embedded": {
"records": [
{
"source_asset_type": "credit_alphanum4",
"source_asset_code": "USD",
"source_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"source_amount": "4.1900246",
"destination_asset_type": "credit_alphanum4",
"destination_asset_code": "BB1",
"destination_asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
"destination_amount": "5.0000000",
"path": [
{
"asset_type": "credit_alphanum4",
"asset_code": "NGNT",
"asset_issuer": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD"
},
{
"asset_type": "native"
}
]
},
{
"source_asset_type": "native",
"source_amount": "162.0291692",
"destination_asset_type": "credit_alphanum4",
"destination_asset_code": "BB1",
"destination_asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
"destination_amount": "5.0000000",
"path": [
{
"asset_type": "credit_alphanum4",
"asset_code": "EURT",
"asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
}
]
},
{
"source_asset_type": "native",
"source_amount": "162.3284659",
"destination_asset_type": "credit_alphanum4",
"destination_asset_code": "BB1",
"destination_asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
"destination_amount": "5.0000000",
"path": [
{
"asset_type": "credit_alphanum4",
"asset_code": "USD",
"asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
},
{
"asset_type": "credit_alphanum4",
"asset_code": "EURT",
"asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
}
]
},
{
"source_asset_type": "native",
"source_amount": "367.4324508",
"destination_asset_type": "credit_alphanum4",
"destination_asset_code": "BB1",
"destination_asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
"destination_amount": "5.0000000",
"path": [
{
"asset_type": "credit_alphanum4",
"asset_code": "BTC",
"asset_issuer": "GAUTUYY2THLF7SGITDFMXJVYH3LHDSMGEAKSBU267M2K7A3W543CKUEF"
}
]
}
]
}
}Last updated
Was this helpful?