build_toggle_affiliate_transaction
Build a transaction to activate or deactivate an affiliate, specifying the affiliate code, new active status, and owner wallet. Requires protocol admin signature.
Instructions
[REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to activate/deactivate affiliate. Requires protocol admin signature.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>",
"active": "<active>",
"user_wallet": "<user_wallet>"
},
"name": "build_toggle_affiliate_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Affiliate code | |
| active | Yes | New active status | |
| user_wallet | Yes | Owner wallet |