Cortex

Cortex Product Onboarding

Launch an agent-commerce flow

Build merchant metadata, register services, prepare an agent account, and commit a quote. You can use the generated templates or send the core transactions directly from a browser wallet.

Read-only preflight

Connect a wallet to check account, network, deployed contract code, and hosted API health. Transaction buttons below will open your wallet before anything is submitted.

Wallet

Not connected

Network

Unknown chain

Contracts

Unchecked or missing

Hosted API

Unchecked

CommerceRegistry

0xf0bf44b28567f0b3d2370dc7af8a63335746d8d4

Unchecked

AgentRegistry

0x24ca7dc7747b0166e73a2d6d99ce677476f046f3

Unchecked

PolicyModule

0xb2686c5cc3ab7ce45acfe0091698d9b6a16c2d0c

Unchecked

Merchant profile

Start with a payout address and metadata URI/hash. The metadata can live on IPFS, Arweave, or HTTPS; Cortex anchors the URI and hash onchain.

Enter the transaction sender addressEnter a 0x payout address

Merchant metadata JSON

{
  "name": "Example Data Merchant",
  "website": "https://merchant.example",
  "support": "support@merchant.example",
  "owner_address": "0x...",
  "payout_chain": "base-sepolia",
  "payout_address": "0x...",
  "refund_policy": "Refunds available when fulfillment does not match accepted quote terms.",
  "cortex": {
    "registry": "0xf0bf44b28567f0b3d2370dc7af8a63335746d8d4",
    "network": "base-sepolia"
  }
}

Register merchant

export RPC_URL=https://sepolia.base.org
export MERCHANT_KEY=0x...
export COMMERCE_REGISTRY_ADDRESS=0xf0bf44b28567f0b3d2370dc7af8a63335746d8d4
export PAYOUT_ADDRESS=0x...
export MERCHANT_METADATA_URI=ipfs://merchant-metadata
export MERCHANT_METADATA_HASH=0x0000000000000000000000000000000000000000000000000000000000000000

cast send "$COMMERCE_REGISTRY_ADDRESS" \
  "registerMerchant(address,string,bytes32)" \
  "$PAYOUT_ADDRESS" \
  "$MERCHANT_METADATA_URI" \
  "$MERCHANT_METADATA_HASH" \
  --rpc-url "$RPC_URL" \
  --private-key "$MERCHANT_KEY"

curl "https://api.cortex.wallyweb.com/merchants?owner=0x..."

Register merchant with wallet

Sends registerMerchant from the connected wallet. The connected account becomes the merchant owner.

Merchant API check

After registration and indexing, confirm the merchant record is visible.

https://api.cortex.wallyweb.com/merchants?owner=0x...&limit=5

Onchain state check

Reads the merchant, service, and wallet-owned agent ids directly from Base Sepolia.

Merchant

No merchant loaded

Service

No service loaded

Agent ids owned by wallet

Connect a wallet to read agent ids