Metaplex Agent Registry

v0.2.1
io.github.nirholas/metaplex-agent Checked 1 hour ago Published 1 month ago

Deploy AI agents on-chain on Solana with an EIP-8004 identity.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mint_onchain_agent Mint an on-chain agent into the Metaplex Agent Registry

Deploy an AI agent on-chain, Genesis-333 style: mints a Metaplex Core asset (data: URI metadata, verified creator, royalties, immutable metadata) AND registers its EIP-8004 Agent Identity, so it appears on metaplex.com/agents with its own built-in wallet. Runs as ONE atomic transaction when it fits Solana's 1232-byte limit, otherwise as create followed by register (how the Genesis 333 landed). Signs with the configured SOLANA_SECRET_KEY (or a per-call secret) and spends ~0.007 SOL in rent + fees, plus a flat SOL deploy fee on mainnet that funds $THREE buybacks (holding $THREE halves it, then w…

ParameterTypeDescription
name *stringAgent name. Becomes the Core asset name and the registration name.
activebooleanRegistration active flag. Default true.
add_blockerbooleanAttach AddBlocker so no further plugins can be added. Default false.
attributesarrayOn-chain Attributes plugin entries (real bytes in the asset account).
collectionMint into this Metaplex Core collection. The signer must be the collection authority.
confirmbooleanMust be true to broadcast. Anything else returns a spend-nothing preview.
descriptionstringWhat this agent is or does. Stored in the EIP-8004 registration document.
external_urlstringOptional external_url in the asset metadata (e.g. the agent home page).
imagestringThumbnail/avatar image URL (PNG or similar). Shown on metaplex.com/agents, wallets, and explorers.
immutable_metadatabooleanAttach the ImmutableMetadata plugin so the metadata can never change. Default true (Genesis style).
metadata_attributesarrayOff-chain attributes array inside the asset metadata JSON (trait_type/value pairs).
metadata_uristringFull override for the asset metadata URI (https or data:). Skips the built-in metadata builder.
model_urlstring3D model URL (GLB). Written as the asset metadata animation_url and as model.uri in the registration, Genesis style.
networkstringSolana cluster. Defaults to the configured network (mainnet unless overridden).
ownerstringMint the asset to this owner instead of the signing wallet.
permanent_burnbooleanAttach PermanentBurnDelegate. Default false.
permanent_freezebooleanAttach PermanentFreezeDelegate (unfrozen). Default false.
permanent_transferbooleanAttach PermanentTransferDelegate. Default false.
registration_uristringFull override for the Agent Identity registration URI (https or data:). Skips the built-in registration builder.
registrationsarrayExternal registry registrations. Defaults to the chain registry entry, or the three.ws entry when threews_agent_id is set.
royalty_basis_pointsintegerRoyalty in basis points. Default 500 (5%), the Genesis value. 0 removes the Royalties plugin.
royalty_creatorsarrayRoyalty split. Percentages must sum to 100. Defaults to the signing wallet at 100%.
secretstringPer-call signing key (base58 secret key or JSON byte array). Overrides SOLANA_SECRET_KEY.
servicesarrayServices the agent offers, listed on its Metaplex agent page ({name, endpoint}).
supported_trustarrayTrust models the agent supports. Default ['reputation'] (Genesis style).
threews_agent_idstringthree.ws agent UUID. Adds the Genesis-exact registration entry {agentId, agentRegistry: "https://three.ws"}.
verified_creatorbooleanAttach the VerifiedCreators plugin with the signing wallet verified. Default true (Genesis style).
x402_supportbooleanAdvertise x402 payment support in the registration document. Default false.

prepare_agent_mint Prepare an agent mint for a Phantom/Solflare wallet to sign

Build the exact Genesis-style mint+register flow (Metaplex Core asset + Agent Identity) for an EXTERNAL Solana wallet: Phantom, Solflare, Backpack, Ledger, anything. Needs no secret key. Returns unsigned transactions base64 in txs_base64 (already co-signed by the new asset keypair) with `wallet` as the fee payer: one atomic tx when it fits Solana's size limit, else create + register to sign together via signAllTransactions. The wallet signs and broadcasts, or hands the signed array to send_signed_transaction. Includes the same mainnet deploy fee as mint_onchain_agent, priced against the wallet…

ParameterTypeDescription
name *stringAgent name. Becomes the Core asset name and the registration name.
wallet *stringThe base58 address of the wallet that will sign, pay, and own the agent.
activebooleanRegistration active flag. Default true.
add_blockerbooleanAttach AddBlocker so no further plugins can be added. Default false.
attributesarrayOn-chain Attributes plugin entries (real bytes in the asset account).
collectionMint into this Metaplex Core collection. The signer must be the collection authority.
descriptionstringWhat this agent is or does. Stored in the EIP-8004 registration document.
external_urlstringOptional external_url in the asset metadata (e.g. the agent home page).
imagestringThumbnail/avatar image URL (PNG or similar). Shown on metaplex.com/agents, wallets, and explorers.
immutable_metadatabooleanAttach the ImmutableMetadata plugin so the metadata can never change. Default true (Genesis style).
metadata_attributesarrayOff-chain attributes array inside the asset metadata JSON (trait_type/value pairs).
metadata_uristringFull override for the asset metadata URI (https or data:). Skips the built-in metadata builder.
model_urlstring3D model URL (GLB). Written as the asset metadata animation_url and as model.uri in the registration, Genesis style.
networkstringSolana cluster. Defaults to the configured network (mainnet unless overridden).
ownerstringMint the asset to this owner instead of the signing wallet.
permanent_burnbooleanAttach PermanentBurnDelegate. Default false.
permanent_freezebooleanAttach PermanentFreezeDelegate (unfrozen). Default false.
permanent_transferbooleanAttach PermanentTransferDelegate. Default false.
registration_uristringFull override for the Agent Identity registration URI (https or data:). Skips the built-in registration builder.
registrationsarrayExternal registry registrations. Defaults to the chain registry entry, or the three.ws entry when threews_agent_id is set.
royalty_basis_pointsintegerRoyalty in basis points. Default 500 (5%), the Genesis value. 0 removes the Royalties plugin.
royalty_creatorsarrayRoyalty split. Percentages must sum to 100. Defaults to the signing wallet at 100%.
servicesarrayServices the agent offers, listed on its Metaplex agent page ({name, endpoint}).
supported_trustarrayTrust models the agent supports. Default ['reputation'] (Genesis style).
threews_agent_idstringthree.ws agent UUID. Adds the Genesis-exact registration entry {agentId, agentRegistry: "https://three.ws"}.
verified_creatorbooleanAttach the VerifiedCreators plugin with the signing wallet verified. Default true (Genesis style).
x402_supportbooleanAdvertise x402 payment support in the registration document. Default false.

send_signed_transaction Broadcast signed Solana transactions in order and confirm them

Broadcast one or more fully signed Solana transactions (base64) IN ORDER, polling each to confirmation before the next. Use it to complete the prepare_agent_mint flow: pass the wallet-signed txs_base64 array and the create/register sequencing (including the propagation race) is handled. Whatever the transactions do on-chain happens for real, so only send bytes you built and inspected.

ParameterTypeDescription
networkstringCluster to broadcast on. Defaults to the configured network.
tx_base64stringA single fully signed transaction, base64 encoded.
txs_base64arrayFully signed transactions to broadcast in order (e.g. create then register).

register_agent_identity Register an existing Core asset in the Metaplex Agent Registry

Give an ALREADY-MINTED Metaplex Core asset its Agent Identity: writes the EIP-8004 registration document (as a self-contained data: URI) onto the asset and creates its identity PDA, after which it appears on metaplex.com/agents. The signing wallet must be the asset authority (or the collection authority for collection-bound assets). Registration is one-time per asset and costs ~0.003 SOL; an already-registered asset returns already_registered without spending. Without confirm:true it returns a spend-nothing preview. To mint a NEW agent, use mint_onchain_agent or prepare_agent_mint instead.

ParameterTypeDescription
asset *stringThe Core asset address to register.
name *stringAgent name for the registration document.
activebooleanRegistration active flag. Default true.
collectionstringThe collection address, required for collection-bound assets.
confirmbooleanMust be true to broadcast. Anything else returns a preview.
descriptionstringAgent description.
imagestringThumbnail image URL.
model_urlstring3D model URL (GLB), written as model.uri.
networkstringCluster. Defaults to the configured network.
registration_uristringFull override for the registration URI (https or data:).
registrationsarrayExternal registry entries. Defaults to the chain registry entry.
secretstringPer-call signing key. Overrides SOLANA_SECRET_KEY.
servicesarrayServices the agent offers.
supported_trustarrayDefault ['reputation'].
threews_agent_idstringthree.ws agent UUID for the Genesis-exact three.ws registration entry.
x402_supportbooleanAdvertise x402 payment support. Default false.

get_onchain_agent Read an on-chain agent (asset, registration, wallet)

Fetch a Metaplex Agent Registry agent by its Core asset address: name, owner, update authority, plugins (royalties, verified creators, immutable metadata, attributes), the decoded asset metadata and EIP-8004 registration documents, whether the identity PDA exists, and the built-in agent wallet (Asset Signer PDA) with its live SOL balance. Read-only. Works on any registered agent, e.g. the three.ws Genesis mints.

ParameterTypeDescription
asset *stringThe Core asset address (base58).
networkstringCluster. Defaults to the configured network.

agent_wallet An agent's built-in wallet, or the signer wallet, with balance

Show a wallet address and its live SOL balance. Pass `asset` to derive an on-chain agent's built-in wallet (the Metaplex Core Asset Signer PDA, the wallet shown on metaplex.com/agents). Pass `address` to inspect any wallet. Pass neither to see the configured signing wallet, e.g. to confirm it is funded before mint_onchain_agent. On mainnet it also reports the wallet $THREE balance and the deploy-fee tier that balance earns (see three_status). Read-only; never moves funds.

ParameterTypeDescription
addressstringA wallet address to inspect verbatim.
assetstringA Core asset address: derives that agent's built-in wallet.
networkstringCluster. Defaults to the configured network.

build_registration Build an EIP-8004 registration document (no chain access)

Build the Genesis-style EIP-8004 registration-v1 JSON document and its self-contained data:application/json;base64 URI, without touching Solana. Use it to preview exactly what mint_onchain_agent / register_agent_identity will write on-chain, or to host the document yourself and pass it back as registration_uri.

ParameterTypeDescription
name *stringAgent name.
activebooleanRegistration active flag. Default true.
assetstringAsset address for the default chain-registry entry when no registrations are given.
descriptionstringAgent description.
imagestringThumbnail image URL.
model_urlstring3D model URL (GLB), written as model.uri.
networkstringNetwork for the default chain-registry entry. Defaults to the configured network.
registrationsarrayExternal registry entries.
servicesarrayServices the agent offers.
supported_trustarrayDefault ['reputation'].
threews_agent_idstringthree.ws agent UUID for the Genesis-exact three.ws entry.
x402_supportbooleanAdvertise x402 payment support. Default false.

list_onchain_agents List the latest on-chain agent registrations

The latest agents to land on-chain in the Metaplex Agent Registry, newest first, from the live three.ws /api/deployments feed (which also indexes registrations minted outside three.ws). Each entry carries the Core asset address, name, description, image, owner, 3D and x402 flags, and explorer links. Set all_chains:true to include EVM ERC-8004 registrations in the same stream. Read-only.

ParameterTypeDescription
all_chainsbooleanInclude EVM ERC-8004 registrations too. Default false (Solana only).
cursorstringPagination cursor from a previous call.
limitintegerHow many registrations to return. Default 12.
networkstringSolana cluster. Defaults to the configured network.

three_status Deploy fee, $THREE holder tier, and the live buyback ledger

What the next on-chain deploy costs and why. Returns the deploy-fee schedule (a flat SOL fee on mainnet, free on devnet), the live $THREE balance of a wallet and the tier it earns (half price, then free), the wallet the fee is paid to, and the live $THREE market + buyback figures from the public three.ws ledger. Pass `wallet` to price a specific payer, or omit it to price the configured signer. Read-only: it moves nothing and needs no key.

ParameterTypeDescription
networkstringCluster. Defaults to the configured network. Devnet deploys are always free.
walletstringPrice the deploy fee for this wallet. Defaults to the configured signer.