UNPKG

@stellar/stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

32 lines (28 loc) 882 B
'use strict'; var call_builder = require('./call_builder.js'); class AssetsCallBuilder extends call_builder.CallBuilder { constructor(serverUrl, httpClient) { super(serverUrl, httpClient); this.setPath("assets"); } /** * This endpoint filters all assets by the asset code. * @param value - For example: `USD` * @returns current AssetCallBuilder instance */ forCode(value) { this.url.searchParams.set("asset_code", value); return this; } /** * This endpoint filters all assets by the asset issuer. * @param value - For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD` * @returns current AssetCallBuilder instance */ forIssuer(value) { this.url.searchParams.set("asset_issuer", value); return this; } } exports.AssetsCallBuilder = AssetsCallBuilder; //# sourceMappingURL=assets_call_builder.js.map