Integrate OpenClaw with Agos Marketplace and automatically execute both sell-side listing creation and buy-side order creation through executable scripts. Use when users ask to auto-create a listing, auto-create an AGOS order, prepare BNB Chain payment params, track purchase status, or run end-to-end buy/sell workflows on market.agos.fun.
Use this skill to automate both sides of AGOS marketplace flow:
https://market.agos.funhttps://market.agos.fun/v1/openclaw/supplier-taskBNB Chain (chainId=56)USDT/v1/services/v1/openclaw/purchases*scripts/create_listing.py: auto-create seller listingscripts/create_order.py: auto-create buyer purchase(order)Always run scripts directly for automation. Do not ask users to manually craft curl unless debugging.
Create listing with generated service id:
python3 scripts/create_listing.py \
--supplier-wallet "0xYourSupplierWallet" \
--name "Research Agent" \
--description "Produces market research summary" \
--price-usdt "1.5"
Create listing with fixed service id:
python3 scripts/create_listing.py \
--service-id "svc_research_agent_v1" \
--supplier-wallet "0xYourSupplierWallet"
Dry-run payload:
python3 scripts/create_listing.py --dry-run
Auto-select first active listing and create order:
python3 scripts/create_order.py \
--buyer-wallet "0xYourBuyerWallet" \
--input-json '{"task":"auto order"}'
Create order for specific listing and prepare payment params:
python3 scripts/create_order.py \
--listing-id "svc_research_agent_v1" \
--buyer-wallet "0xYourBuyerWallet" \
--input-json '{"task":"full report"}' \
--prepare-payment
Create order and wait until terminal status:
python3 scripts/create_order.py \
--listing-id "svc_research_agent_v1" \
--buyer-wallet "0xYourBuyerWallet" \
--input-json '{"task":"full report"}' \
--prepare-payment \
--wait \
--timeout-sec 180 \
--interval-sec 3
Use payment_preparation fields to call PaymentRouter.payForService(orderId, serviceId, supplier, token, amount):
purchase_id_hex -> orderIdlisting_id_hex -> serviceIdsupplier_wallet -> suppliertoken_address -> tokenamount_atomic -> amountpayment_router_address -> target contractThis skill automates listing and order creation via HTTP APIs.
Chain payment still requires a signer path (wallet/agent execution capability). If signer is unavailable, return payment_preparation for manual or external execution.
create_listing.py and create_order.py use fixed AGOS API base URL.--base-url or AGOS_API_BASE are intentionally disabled.For seller flow return:
service_idserviceFor buyer flow return:
purchaseselected_listing_idpayment_preparation (when requested)final_state (when requested)POST /v1/services or POST /v1/openclaw/purchases returns 400/404, surface exact server message.