obyte.js
GitHubDiscord
0.1.14
0.1.14
  • Obyte.js
  • Getting started
    • Quick start
    • Testnet
  • API
    • Get witnesses
    • Get peers
    • Get joint
    • Get last MCI
    • Get history
    • Get attestation
    • Get attestations
    • Get bots
    • Get asset metadata
    • Get definition
    • Get balances
    • Get profile units
    • Get data feed
    • Autonomous Agents
      • Dry run AA
      • Get AA state vars
      • Get AAs by base AAs
      • Get AA responses
      • Get AA response chain
    • Core
      • Catchup
      • Get hash tree
      • Get light props
      • Post joint
      • Pick divisible coins for amount
      • Heartbeat
  • Post
    • Address definition change
    • Attestation
    • Asset
    • Asset attestors
    • Data
    • Data feed
    • Definition
    • Definition template
    • Payment
    • Poll
    • Vote
    • Profile
    • Text
    • Multi
  • Client
    • Subscribe
    • Just saying
    • Requests
  • Utils
    • Sign a message
    • Validate signed message
    • Generate a random address
    • Get definition address
    • Is valid address
    • Keep connection alive
  • About
    • About
    • Links
    • Tutorials
Powered by GitBook
On this page
  • Example
  • Returns
  • Learn more
  1. API
  2. Autonomous Agents

Get AAs by base AAs

Get Autonomous Agents that are based on some Autonomous Agent.

Example

const params = {
  base_aa: 'QFM5ECICVHZKRVTW3EMVTUSYJ6P2WLDY'
};

client.api.getAasByBaseAas(params, function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});

Returns

[
  {
    address: 'VUSZEABYYJDLCQ2SLWERIV2WXUNPMF3I',
    definition: [
      'autonomous agent',
      {
        base_aa: 'QFM5ECICVHZKRVTW3EMVTUSYJ6P2WLDY',
        params": {
          asset: 'vTSkFkoxAtS7mnq03rd8MjNV4EC6RIIfvxPbnER9O4w='
        }
      }
    ]
  },
  {
    address: 'LMDG6R64KCLDVMEJPJEG3FOJ2TJGFEHM',
    definition: [
      'autonomous agent',
      {
        base_aa: 'QFM5ECICVHZKRVTW3EMVTUSYJ6P2WLDY',
        params: {
          asset: 'w91kcLlYaAHC+1lK19y+cvF0AUCKmU3+DWz+9cEKto4='
        }
      }
    ]
  }
]

Learn more

PreviousGet AA state varsNextGet AA responses

Last updated 4 years ago

Autonomous agents documentation

Oscript editor

https://developer.obyte.org/autonomous-agents
https://oscript.org