getAssestByAuthority.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. const getAssetsByAuthority = {
  2. description: 'Returns the list of assets given an authority address.',
  3. method: 'getAssetsByAuthority',
  4. params: [
  5. {
  6. name: 'authorityAddress',
  7. type: 'string',
  8. description: 'Public key of the authority',
  9. placeholder: 'Public key of the authority',
  10. required: true,
  11. },
  12. {
  13. name: 'sortBy',
  14. type: 'object',
  15. description: 'Sorting criteria',
  16. value: {
  17. sortBy: {
  18. type: 'option',
  19. value: ['created', 'updated', 'recentAction', 'none'],
  20. },
  21. sortDirection: {
  22. type: 'option',
  23. value: ['asc', 'desc'],
  24. },
  25. },
  26. },
  27. {
  28. name: 'limit',
  29. type: 'number',
  30. description: 'Number of assets to return',
  31. },
  32. {
  33. name: 'page',
  34. type: 'number',
  35. description: 'The index of the "page" to retrieve.',
  36. },
  37. {
  38. name: 'before',
  39. type: 'string',
  40. description: 'Retrieve assets before the specified ID',
  41. },
  42. {
  43. name: 'after',
  44. type: 'string',
  45. description: 'Retrieve assets after the specified ID',
  46. },
  47. ],
  48. examples: null,
  49. }
  50. export default getAssetsByAuthority