agentic-commerce
v1.0.0MCP server for Boson Protocol — on-chain agentic commerce for physical & digital goods.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_config_ids
Returns all valid configId values for this server. Call first to discover which network/deployment to use. No auth required.
get_funds
Reads treasury fund balances for sellers and buyers from the Boson subgraph. Supports pagination/ordering/filtering. Read-only — signerAddress not required. Returns: array of { tokenAddress, availableAmount, accountId }.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
fundsFilter | object | |
fundsFirst | number | |
fundsOrderBy | string | |
fundsOrderDirection | string | |
fundsSkip | number |
get_disputes
Reads dispute records from the Boson subgraph. Supports pagination, ordering, and filtering by buyer/seller/state. Read-only. Returns: array of dispute entities with exchangeId, state, timeout.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputesFilter | object | |
disputesFirst | number | |
disputesOrderBy | string | |
disputesOrderDirection | string | |
disputesSkip | number |
get_dispute_by_id
Reads a single dispute by its ID (equals the exchangeId). Read-only. Returns: dispute entity with state, timeout, buyerPercent. Use get_disputes to search first.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputeId * | string | Numeric ID of the dispute to retrieve. Note: disputeId equals the exchangeId of the associated exchange. |
queryVars | Optional additional subgraph query variables for field selection. Leave empty for default fields. |
get_exchanges
Reads exchange records (offer commitments) from the Boson subgraph. Filter by buyer/seller/state. Read-only. Returns: array of exchanges with offerId, state (Committed/Redeemed/Completed/Disputed/Cancelled/Revoked), and voucher details.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangesFilter | object | |
exchangesFirst | number | |
exchangesOrderBy | string | |
exchangesOrderDirection | string | |
exchangesSkip | number |
get_offers
Reads offer listings from the Boson subgraph. Supports pagination, ordering, and filtering (e.g. by sellerId). Read-only. Returns: array of offers with price, deposit, dates, and quantity.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangesFilter | object | |
exchangesFirst | number | |
exchangesOrderBy | string | |
exchangesOrderDirection | string | |
exchangesSkip | number | |
includeExchanges | boolean | |
offersFilter | object | |
offersFirst | number | |
offersOrderBy | string | |
offersOrderDirection | string | |
offersSkip | number |
get_sellers
Reads seller account entities from the Boson subgraph. Optionally includes related offers, exchanges, funds, and logs. Read-only. Returns: array of seller entities with addresses and metadataUri.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
includeExchanges | boolean | |
includeFunds | boolean | |
includeLogs | boolean | |
includeOffers | boolean | |
sellersFilter | object | |
sellersFirst | number | |
sellersOrderBy | string | |
sellersOrderDirection | string | |
sellersSkip | number |
get_dispute_resolvers
Reads registered dispute resolver entities. Use this to find a valid disputeResolverId for create_offer. Read-only. Returns: array of resolvers with ID, fees, escalationResponsePeriod, and supported tokens.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputeResolversFilter | object | |
disputeResolversFirst | number | |
disputeResolversOrderBy | string | |
disputeResolversOrderDirection | string | |
disputeResolversSkip | number |
create_offer
Creates a product offer. Caller must have a seller account (create_seller first). Prerequisite: store metadata first with store_product_v1_metadata or store_base_metadata to get metadataUri/metadataHash. All dates in milliseconds; amounts as strings in wei. Returns unsigned tx — sign locally with your wallet → send_signed_transaction, or executionMode='metaTx'.
| Parameter | Type | Description |
|---|---|---|
buyerCancellationPenalty * | Amount buyer forfeits on cancel, in same unit as price. Must be <= price. Pass as string. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputePeriodDurationInMS * | number | Duration in ms for buyer to raise a dispute after redeeming. Example: 604800000 = 7 days. |
metadataHash * | string | Keccak256 hash of the metadata JSON. Returned alongside metadataUri from the store_*_metadata tools. |
metadataUri * | string | IPFS URI pointing to the offer metadata JSON. Obtain by calling store_product_v1_metadata, store_bundle_metadata, or store_base_metadata. |
price * | string | Offer price in the exchange token's smallest unit (wei). Pass as string to avoid precision loss, e.g. '1000000000000000000' = 1 ETH. |
quantityAvailable * | number | How many times this offer can be committed to. Must be 1 when creator='BUYER'. |
resolutionPeriodDurationInMS * | number | Duration in ms to respond to a resolution proposal before it expires. Example: 259200000 = 3 days. |
sellerDeposit * | Seller collateral in same unit as price. Released to seller on completion or forfeited on dispute. Pass as string. | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
validFromDateInMS * | number | Unix timestamp in milliseconds when the offer becomes active. Example: Date.now() for immediate. |
validUntilDateInMS * | number | Unix timestamp in milliseconds when the offer can no longer be committed to. |
voucherRedeemableFromDateInMS * | number | Timestamp in ms from which buyer can redeem. Must be >= validFromDateInMS. |
voucherRedeemableUntilDateInMS * | number | Timestamp in ms after which voucher cannot be redeemed. Set to 0 to use voucherValidDurationInMS instead. |
voucherValidDurationInMS * | number | Voucher is redeemable for this many ms after commit. Set to 0 to use voucherRedeemableUntilDateInMS instead. |
agentId | Optional dACP agent facilitating this offer. Omit or pass '0' if no agent. | |
collectionIndex | Index of the seller's NFT collection for vouchers. Omit to use default (index 0). | |
creator | string | 'SELLER' (default) = seller creates offer. 'BUYER' = buyer-initiated offer, quantity must be 1. |
disputeResolverId | string | ID of the dispute resolver for escalated disputes. Call get_dispute_resolvers to list available resolvers. |
drMutualizerAddress | Optional dispute resolver mutualizer contract address that pools resolution funds. | |
exchangeTokenAddress | string | ERC-20 token accepted for payment. Omit or use address(0) for native ETH. Call get_supported_tokens for valid values. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
feeLimit | Max protocol fee the seller accepts in same token unit. Pass as string. | |
priceType | number | 0 = static price, 1 = discovery price (auction). |
royaltyInfo | object |
create_offer_with_condition
Creates an offer gated by token-ownership (e.g. hold an ERC-721 to commit). Same prerequisites as create_offer plus a condition object specifying the gate token, method, and threshold. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
buyerCancellationPenalty * | Amount buyer forfeits on cancel, in same unit as price. Must be <= price. Pass as string. | |
condition * | object | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputePeriodDurationInMS * | number | Duration in ms for buyer to raise a dispute after redeeming. Example: 604800000 = 7 days. |
metadataHash * | string | Keccak256 hash of the metadata JSON. Returned alongside metadataUri from the store_*_metadata tools. |
metadataUri * | string | IPFS URI pointing to the offer metadata JSON. Obtain by calling store_product_v1_metadata, store_bundle_metadata, or store_base_metadata. |
price * | Offer price in the exchange token's smallest unit (wei). Pass as string to avoid precision loss, e.g. '1000000000000000000' = 1 ETH. | |
quantityAvailable * | number | How many times this offer can be committed to. Must be 1 when creator='BUYER'. |
resolutionPeriodDurationInMS * | number | Duration in ms to respond to a resolution proposal before it expires. Example: 259200000 = 3 days. |
sellerDeposit * | Seller collateral in same unit as price. Released to seller on completion or forfeited on dispute. Pass as string. | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
validFromDateInMS * | number | Unix timestamp in milliseconds when the offer becomes active. Example: Date.now() for immediate. |
validUntilDateInMS * | number | Unix timestamp in milliseconds when the offer can no longer be committed to. |
voucherRedeemableFromDateInMS * | number | Timestamp in ms from which buyer can redeem. Must be >= validFromDateInMS. |
voucherRedeemableUntilDateInMS * | number | Timestamp in ms after which voucher cannot be redeemed. Set to 0 to use voucherValidDurationInMS instead. |
voucherValidDurationInMS * | number | Voucher is redeemable for this many ms after commit. Set to 0 to use voucherRedeemableUntilDateInMS instead. |
agentId | Optional dACP agent facilitating this offer. Omit or pass '0' if no agent. | |
collectionIndex | Index of the seller's NFT collection for vouchers. Omit to use default (index 0). | |
creator | string | 'SELLER' (default) = seller creates offer. 'BUYER' = buyer-initiated offer, quantity must be 1. |
disputeResolverId | string | ID of the dispute resolver for escalated disputes. Call get_dispute_resolvers to list available resolvers. |
drMutualizerAddress | Optional dispute resolver mutualizer contract address that pools resolution funds. | |
exchangeTokenAddress | ERC-20 token accepted for payment. Omit or use address(0) for native ETH. Call get_supported_tokens for valid values. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
feeLimit | Max protocol fee the seller accepts in same token unit. Pass as string. | |
priceType | number | 0 = static price, 1 = discovery price (auction). |
royaltyInfo | object |
create_buyer
Creates a buyer account for signerAddress. Required before a buyer can commit to seller-initiated offers for the first time. No prerequisites. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
sign_full_offer
Generates EIP-712 typed data for a non-listed (private) offer that the offer creator must sign. Call before create_offer_and_commit or void_non_listed_offer. Returns: typed data structure — sign it locally with your wallet (EIP-712), then use the signature in the next step.
| Parameter | Type | Description |
|---|---|---|
buyerCancellationPenalty * | Amount buyer forfeits on cancel, in same unit as price. Must be <= price. Pass as string. | |
buyerId * | Numeric ID of the buyer entity. Use '0' for seller-initiated offers. | |
committer * | Ethereum address of the buyer committing in the same transaction. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputePeriodDurationInMS * | number | Duration in ms for buyer to raise a dispute after redeeming. Example: 604800000 = 7 days. |
metadataHash * | string | Keccak256 hash of the metadata JSON. Returned alongside metadataUri from the store_*_metadata tools. |
metadataUri * | string | IPFS URI pointing to the offer metadata JSON. Obtain by calling store_product_v1_metadata, store_bundle_metadata, or store_base_metadata. |
offerCreator * | string | Ethereum address of the seller creating this non-listed offer. Must match the seller's assistant address. |
price * | Offer price in the exchange token's smallest unit (wei). Pass as string to avoid precision loss, e.g. '1000000000000000000' = 1 ETH. | |
quantityAvailable * | number | How many times this offer can be committed to. Must be 1 when creator='BUYER'. |
resolutionPeriodDurationInMS * | number | Duration in ms to respond to a resolution proposal before it expires. Example: 259200000 = 3 days. |
sellerDeposit * | Seller collateral in same unit as price. Released to seller on completion or forfeited on dispute. Pass as string. | |
sellerId * | Numeric ID of the seller entity. Obtain via get_sellers_by_address. | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
validFromDateInMS * | number | Unix timestamp in milliseconds when the offer becomes active. Example: Date.now() for immediate. |
validUntilDateInMS * | number | Unix timestamp in milliseconds when the offer can no longer be committed to. |
voucherRedeemableFromDateInMS * | number | Timestamp in ms from which buyer can redeem. Must be >= validFromDateInMS. |
voucherRedeemableUntilDateInMS * | number | Timestamp in ms after which voucher cannot be redeemed. Set to 0 to use voucherValidDurationInMS instead. |
voucherValidDurationInMS * | number | Voucher is redeemable for this many ms after commit. Set to 0 to use voucherRedeemableUntilDateInMS instead. |
agentId | Optional dACP agent facilitating this offer. Omit or pass '0' if no agent. | |
collectionIndex | string | Index of the seller's NFT collection for vouchers. Omit to use default (index 0). |
condition | object | |
conditionalTokenId | Optional token ID of the NFT gate token used by this specific commit (for SpecificToken gating type). | |
creator | string | 'SELLER' (default) = seller creates offer. 'BUYER' = buyer-initiated offer, quantity must be 1. |
disputeResolverId | string | ID of the dispute resolver for escalated disputes. Call get_dispute_resolvers to list available resolvers. |
drMutualizerAddress | Optional dispute resolver mutualizer contract address that pools resolution funds. | |
exchangeTokenAddress | ERC-20 token accepted for payment. Omit or use address(0) for native ETH. Call get_supported_tokens for valid values. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
feeLimit | Max protocol fee the seller accepts in same token unit. Pass as string. | |
priceType | number | 0 = static price, 1 = discovery price (auction). |
royaltyInfo | object | |
useDepositedFunds | boolean | If true, use funds already deposited in the protocol treasury instead of transferring from the wallet. |
create_offer_and_commit
Atomically creates a private offer and commits a specific buyer in one transaction. Prerequisite: call sign_full_offer, sign the returned typed data locally with your wallet (EIP-712), and provide the signature here. Used for private/bilateral trades. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
buyerCancellationPenalty * | Amount buyer forfeits on cancel, in same unit as price. Must be <= price. Pass as string. | |
buyerId * | Numeric ID of the buyer entity. Use '0' for seller-initiated offers. | |
committer * | Ethereum address of the buyer committing in the same transaction. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputePeriodDurationInMS * | number | Duration in ms for buyer to raise a dispute after redeeming. Example: 604800000 = 7 days. |
metadataHash * | string | Keccak256 hash of the metadata JSON. Returned alongside metadataUri from the store_*_metadata tools. |
metadataUri * | string | IPFS URI pointing to the offer metadata JSON. Obtain by calling store_product_v1_metadata, store_bundle_metadata, or store_base_metadata. |
offerCreator * | string | Ethereum address of the seller creating this non-listed offer. Must match the seller's assistant address. |
price * | Offer price in the exchange token's smallest unit (wei). Pass as string to avoid precision loss, e.g. '1000000000000000000' = 1 ETH. | |
quantityAvailable * | number | How many times this offer can be committed to. Must be 1 when creator='BUYER'. |
resolutionPeriodDurationInMS * | number | Duration in ms to respond to a resolution proposal before it expires. Example: 259200000 = 3 days. |
sellerDeposit * | Seller collateral in same unit as price. Released to seller on completion or forfeited on dispute. Pass as string. | |
sellerId * | Numeric ID of the seller entity. Obtain via get_sellers_by_address. | |
signature * | string | ECDSA signature over the offer typed data. Workflow: sign_full_offer → sign the returned typed data locally with your wallet (EIP-712) → use result here. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
validFromDateInMS * | number | Unix timestamp in milliseconds when the offer becomes active. Example: Date.now() for immediate. |
validUntilDateInMS * | number | Unix timestamp in milliseconds when the offer can no longer be committed to. |
voucherRedeemableFromDateInMS * | number | Timestamp in ms from which buyer can redeem. Must be >= validFromDateInMS. |
voucherRedeemableUntilDateInMS * | number | Timestamp in ms after which voucher cannot be redeemed. Set to 0 to use voucherValidDurationInMS instead. |
voucherValidDurationInMS * | number | Voucher is redeemable for this many ms after commit. Set to 0 to use voucherRedeemableUntilDateInMS instead. |
agentId | Optional dACP agent facilitating this offer. Omit or pass '0' if no agent. | |
collectionIndex | string | Index of the seller's NFT collection for vouchers. Omit to use default (index 0). |
condition | object | |
conditionalTokenId | Optional token ID of the NFT gate token used by this specific commit (for SpecificToken gating type). | |
creator | string | 'SELLER' (default) = seller creates offer. 'BUYER' = buyer-initiated offer, quantity must be 1. |
disputeResolverId | string | ID of the dispute resolver for escalated disputes. Call get_dispute_resolvers to list available resolvers. |
drMutualizerAddress | Optional dispute resolver mutualizer contract address that pools resolution funds. | |
exchangeTokenAddress | ERC-20 token accepted for payment. Omit or use address(0) for native ETH. Call get_supported_tokens for valid values. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
feeLimit | Max protocol fee the seller accepts in same token unit. Pass as string. | |
priceType | number | 0 = static price, 1 = discovery price (auction). |
royaltyInfo | object | |
useDepositedFunds | boolean | If true, use funds already deposited in the protocol treasury instead of transferring from the wallet. |
create_offer_commit_and_redeem
Atomically creates a private offer, commits a specific buyer, and immediately redeems the voucher in a single transaction via the OrchestrationHandler. Same prerequisites as create_offer_and_commit (sign_full_offer + EIP-712 signature). Use for instant-fulfilment private trades. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
buyerCancellationPenalty * | Amount buyer forfeits on cancel, in same unit as price. Must be <= price. Pass as string. | |
buyerId * | Numeric ID of the buyer entity. Use '0' for seller-initiated offers. | |
committer * | Ethereum address of the buyer committing in the same transaction. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputePeriodDurationInMS * | number | Duration in ms for buyer to raise a dispute after redeeming. Example: 604800000 = 7 days. |
metadataHash * | string | Keccak256 hash of the metadata JSON. Returned alongside metadataUri from the store_*_metadata tools. |
metadataUri * | string | IPFS URI pointing to the offer metadata JSON. Obtain by calling store_product_v1_metadata, store_bundle_metadata, or store_base_metadata. |
offerCreator * | string | Ethereum address of the seller creating this non-listed offer. Must match the seller's assistant address. |
price * | Offer price in the exchange token's smallest unit (wei). Pass as string to avoid precision loss, e.g. '1000000000000000000' = 1 ETH. | |
quantityAvailable * | number | How many times this offer can be committed to. Must be 1 when creator='BUYER'. |
resolutionPeriodDurationInMS * | number | Duration in ms to respond to a resolution proposal before it expires. Example: 259200000 = 3 days. |
sellerDeposit * | Seller collateral in same unit as price. Released to seller on completion or forfeited on dispute. Pass as string. | |
sellerId * | Numeric ID of the seller entity. Obtain via get_sellers_by_address. | |
signature * | string | ECDSA signature over the offer typed data. Workflow: sign_full_offer → sign the returned typed data locally with your wallet (EIP-712) → use result here. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
validFromDateInMS * | number | Unix timestamp in milliseconds when the offer becomes active. Example: Date.now() for immediate. |
validUntilDateInMS * | number | Unix timestamp in milliseconds when the offer can no longer be committed to. |
voucherRedeemableFromDateInMS * | number | Timestamp in ms from which buyer can redeem. Must be >= validFromDateInMS. |
voucherRedeemableUntilDateInMS * | number | Timestamp in ms after which voucher cannot be redeemed. Set to 0 to use voucherValidDurationInMS instead. |
voucherValidDurationInMS * | number | Voucher is redeemable for this many ms after commit. Set to 0 to use voucherRedeemableUntilDateInMS instead. |
agentId | Optional dACP agent facilitating this offer. Omit or pass '0' if no agent. | |
collectionIndex | string | Index of the seller's NFT collection for vouchers. Omit to use default (index 0). |
condition | object | |
conditionalTokenId | Optional token ID of the NFT gate token used by this specific commit (for SpecificToken gating type). | |
creator | string | 'SELLER' (default) = seller creates offer. 'BUYER' = buyer-initiated offer, quantity must be 1. |
disputeResolverId | string | ID of the dispute resolver for escalated disputes. Call get_dispute_resolvers to list available resolvers. |
drMutualizerAddress | Optional dispute resolver mutualizer contract address that pools resolution funds. | |
exchangeTokenAddress | ERC-20 token accepted for payment. Omit or use address(0) for native ETH. Call get_supported_tokens for valid values. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
feeLimit | Max protocol fee the seller accepts in same token unit. Pass as string. | |
priceType | number | 0 = static price, 1 = discovery price (auction). |
royaltyInfo | object | |
useDepositedFunds | boolean | If true, use funds already deposited in the protocol treasury instead of transferring from the wallet. |
void_offer
Voids a listed offer so it can no longer be committed to. Caller must be the seller assistant. Existing exchanges are unaffected. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerId * | string | ID of the listed offer to void. Caller must be the seller assistant. Existing exchanges are unaffected. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
void_non_listed_offer
Voids a private (non-listed) offer before it is fulfilled. Prerequisite: call sign_full_offer and sign the returned typed data locally with your wallet (EIP-712) to obtain the signature. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
buyerCancellationPenalty * | Amount buyer forfeits on cancel, in same unit as price. Must be <= price. Pass as string. | |
buyerId * | Numeric ID of the buyer entity. Use '0' for seller-initiated offers. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
disputePeriodDurationInMS * | number | Duration in ms for buyer to raise a dispute after redeeming. Example: 604800000 = 7 days. |
metadataHash * | string | Keccak256 hash of the metadata JSON. Returned alongside metadataUri from the store_*_metadata tools. |
metadataUri * | string | IPFS URI pointing to the offer metadata JSON. Obtain by calling store_product_v1_metadata, store_bundle_metadata, or store_base_metadata. |
price * | Offer price in the exchange token's smallest unit (wei). Pass as string to avoid precision loss, e.g. '1000000000000000000' = 1 ETH. | |
quantityAvailable * | number | How many times this offer can be committed to. Must be 1 when creator='BUYER'. |
resolutionPeriodDurationInMS * | number | Duration in ms to respond to a resolution proposal before it expires. Example: 259200000 = 3 days. |
sellerDeposit * | Seller collateral in same unit as price. Released to seller on completion or forfeited on dispute. Pass as string. | |
sellerId * | Numeric ID of the seller entity. Obtain via get_sellers_by_address. | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
validFromDateInMS * | number | Unix timestamp in milliseconds when the offer becomes active. Example: Date.now() for immediate. |
validUntilDateInMS * | number | Unix timestamp in milliseconds when the offer can no longer be committed to. |
voucherRedeemableFromDateInMS * | number | Timestamp in ms from which buyer can redeem. Must be >= validFromDateInMS. |
voucherRedeemableUntilDateInMS * | number | Timestamp in ms after which voucher cannot be redeemed. Set to 0 to use voucherValidDurationInMS instead. |
voucherValidDurationInMS * | number | Voucher is redeemable for this many ms after commit. Set to 0 to use voucherRedeemableUntilDateInMS instead. |
agentId | Optional dACP agent facilitating this offer. Omit or pass '0' if no agent. | |
collectionIndex | Index of the seller's NFT collection for vouchers. Omit to use default (index 0). | |
condition | object | |
creator | string | 'SELLER' (default) = seller creates offer. 'BUYER' = buyer-initiated offer, quantity must be 1. |
disputeResolverId | string | ID of the dispute resolver for escalated disputes. Call get_dispute_resolvers to list available resolvers. |
drMutualizerAddress | Optional dispute resolver mutualizer contract address that pools resolution funds. | |
exchangeTokenAddress | ERC-20 token accepted for payment. Omit or use address(0) for native ETH. Call get_supported_tokens for valid values. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
feeLimit | Max protocol fee the seller accepts in same token unit. Pass as string. | |
priceType | number | 0 = static price, 1 = discovery price (auction). |
royaltyInfo | object | |
useDepositedFunds | boolean | If true, use funds already deposited in the protocol treasury instead of transferring from the wallet. |
void_non_listed_offer_batch
Voids multiple private offers atomically. Same prerequisite as void_non_listed_offer, but for an array of full offer objects. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
fullOffers * | array | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
create_seller
Creates a seller account on Boson Protocol. Required before creating any offers. signerAddress is automatically set as admin, assistant, and treasury. Provide seller metadata and royaltyPercentage. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
authTokenId * | NFT token ID used as auth token (e.g. Lens profile ID). Pass '0' if not using auth tokens. | |
authTokenType * | number | Auth token type: 0=None, 1=Lens Protocol profile NFT. |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
contactPreference * | string | |
kind * | string | |
royaltyPercentage * | string | Default resale royalty in basis points (0–10000). Applied to all offers unless overridden. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
contactLinks | array | |
contractUri | string | Optional URI for OpenSea-style storefront metadata (defaults to empty string, meaning none). When set, it is fetched to copy it to The Graph's IPFS node, so it must be an ipfs:// URI, a CID, or an htt… |
description | string | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
images | array | |
legalTradingName | string | |
name | string | |
salesChannels | array | |
socialLinks | array | |
website | string |
update_seller
Updates an existing seller account. Caller must be the current seller admin (signerAddress). Use get_sellers_by_address to retrieve the seller id first. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
authTokenId * | string | NFT token ID used as auth token (e.g. Lens profile ID). Pass '0' if not using auth tokens. |
authTokenType * | number | Auth token type: 0=None, 1=Lens Protocol profile NFT. |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
contactPreference * | string | |
id * | Numeric ID of the existing seller entity to update. Obtain from get_sellers_by_address. | |
kind * | string | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
contactLinks | array | |
description | string | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
images | array | |
legalTradingName | string | |
name | string | |
salesChannels | array | |
socialLinks | array | |
website | string |
send_signed_transaction
Broadcasts a signed raw Ethereum transaction to the network. signedTransaction must be 0x-prefixed RLP-encoded hex obtained from local wallet signing (e.g. ethers `wallet.signTransaction(tx)`). Returns: transaction hash, block number, and gas used.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
signedTransaction * | string | RLP-encoded signed Ethereum transaction as 0x-prefixed hex string. Obtain from local wallet signing (e.g. ethers `wallet.signTransaction(tx)`). |
send_meta_transaction
Relays a pre-signed meta-transaction via Biconomy so the user pays no gas. Requires sigR/sigS/sigV from a locally-signed EIP-712 payload. Use when the target operation requires metaTx relay. Optionally accepts transferAuthorizations (from the sign_receive_with_* tools, completed with your local signature) so the protocol can pull ERC-20 tokens without a prior approve_exchange_token tx. Returns: relay transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
functionName * | string | |
functionSignature * | string | |
nonce * | string | number | |
sigR * | string | |
sigS * | string | |
sigV * | string | number | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
transferAuthorizations | array | Optional ERC-20 transfer authorizations that let the protocol pull tokens without a prior approve_exchange_token tx (e.g. commit_to_offer or deposit_funds in metaTx mode). Build each entry with the ma… |
send_native_meta_transaction
Relays a native meta-transaction (EIP-712 signed function call) via Biconomy. Requires ABI-encoded function signature and sigR/sigS/sigV from a locally-signed EIP-712 payload. Returns: relay transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
contractAddress * | string | Valid Ethereum address (e.g. '0xAbCd...' or '0xabcd...'). Mixed-case addresses are checksum-validated; all-lowercase and all-uppercase addresses are also accepted. |
functionSignature * | string | |
sigR * | string | |
sigS * | string | |
sigV * | string | number | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
send_forwarded_meta_transaction
Relays a Biconomy forwarded meta-transaction (ERC-20 gas payment). Requires a complete ERC20ForwardRequest and domain separator signature. Returns: relay transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
contractAddress * | string | Valid Ethereum address (e.g. '0xAbCd...' or '0xabcd...'). Mixed-case addresses are checksum-validated; all-lowercase and all-uppercase addresses are also accepted. |
domainSeparator * | string | |
request * | object | |
signature * | string | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
withdraw_funds
Withdraws funds from an entity's protocol treasury to the entity's treasury address. Sellers withdraw proceeds; buyers withdraw refunds. Caller must control the entity via signerAddress. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
entityId * | string | Numeric ID of the seller or buyer entity withdrawing funds. |
list * | array | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
deposit_funds
Deposits ERC-20 or native tokens into an entity's protocol treasury (e.g. seller deposit). For ERC-20, call approve_exchange_token first. In metaTx mode, you can skip the approval by passing transferAuthorizations (built with a sign_receive_with_* tool) to send_meta_transaction. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
amount * | Amount in wei. For ERC-20, approve_exchange_token must be called first, unless relaying in metaTx mode with transferAuthorizations passed to send_meta_transaction. Pass as string. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
entityId * | string | Numeric ID of the entity to credit. Must match signerAddress's seller account. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
tokenAddress * | string | ERC-20 token to deposit. Use address(0) for native ETH. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
extend_dispute_timeout
Extends the deadline of an active dispute. Dispute must be in 'Resolving' state. Either party can call this. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
newDisputeTimeout * | New absolute Unix timestamp in SECONDS (not ms) for the dispute deadline. Must be later than current timeout. | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
expire_dispute
Marks a dispute as expired after its resolution period passes. Permissionless — anyone can call. Exchange must be in 'Disputed' state past its timeout. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
expire_dispute_batch
Marks multiple expired disputes in one transaction. All exchanges must be in 'Disputed' state past their respective timeouts. Permissionless. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeIds * | array | Array of exchange IDs whose dispute period has passed. All must be in 'Disputed' state past their timeout. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
resolve_dispute
Resolves a dispute by mutual agreement. Workflow: (1) create_dispute_resolution_proposal generates typed data, (2) both parties sign the typed data locally with their wallet (EIP-712), (3) either party submits sigR/sigS/sigV here. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
buyerPercentBasisPoints * | Agreed buyer share in basis points (0–10000). Both parties must sign the same value. Obtain via create_dispute_resolution_proposal then sign the typed data locally with each party's wallet (EIP-712)… | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
sigR * | string | 32-byte R component of the ECDSA resolution signature as 0x-prefixed hex. From the locally-signed EIP-712 signature parameters. |
sigS * | string | 32-byte S component as 0x-prefixed hex. From the locally-signed EIP-712 signature parameters. |
sigV * | Recovery byte V: 27 or 28. From the locally-signed EIP-712 signature parameters. | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
raise_dispute
Raises a dispute on a redeemed exchange. Caller must be the buyer. Must be called within disputePeriodDurationInMS after redemption. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
retract_dispute
Retracts a raised dispute, releasing seller deposit and restoring completion flow. Caller must be the buyer who raised it. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
escalate_dispute
Escalates a stale dispute to the third-party dispute resolver. Caller must be the buyer. Resolver's escalation fee must be covered. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
decide_dispute
Decides an escalated dispute. Caller must be the dispute resolver assigned to the offer's disputeResolverId. Specify buyerPercent in basis points (0=all to seller, 10000=all to buyer). Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
buyerPercent * | Percentage of disputed funds to buyer in basis points (0–10000). 10000 = all to buyer, 0 = all to seller. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
refuse_escalated_dispute
Dispute resolver refuses to decide an escalated dispute. Returns the escalation fee to the buyer and resets dispute to 'Resolving' state. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
expire_escalated_dispute
Expires an escalated dispute once the resolver's response period passes without a decision. Permissionless — anyone can call. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
create_dispute_resolution_proposal
Generates EIP-712 typed data for a mutual dispute resolution proposal. Both buyer and seller must sign the same buyerPercentBasisPoints value locally with their wallet (EIP-712) before calling resolve_dispute. Returns: typed data structure (domain, types, message).
| Parameter | Type | Description |
|---|---|---|
buyerPercentBasisPoints * | Proposed percentage of disputed funds for the buyer, 0–10000 (basis points). The counterparty must sign this same value. | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
revoke_voucher
Revokes a committed (not yet redeemed) voucher on behalf of the seller, returning funds to the buyer. Caller must be the seller assistant. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
approve_exchange_token
Grants ERC-20 allowance to the Boson Protocol contract. Must be called before commit_to_offer or deposit_funds when using non-native exchange tokens, unless you relay in metaTx mode with transferAuthorizations (built with a sign_receive_with_* tool) passed to send_meta_transaction. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Allowance in wei. Use max uint256 string for unlimited: '115792089237316195423570985008687907853269984665640564039457584007913129639935'. |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeTokenAddress * | string | ERC-20 token contract address to approve for the Boson Protocol diamond. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
sign_receive_with_erc3009_authorization
Generates EIP-712 typed data for an ERC-3009 ReceiveWithAuthorization (e.g. USDC). Authorizes the spender (default: protocol diamond) to pull `value` from signerAddress between validAfter and validBefore. Sign locally with your wallet (EIP-712); add the resulting signature to the returned transferAuthorization { strategy: 'ERC3009', data } and pass it in send_meta_transaction.transferAuthorizations. Returns: typedData to sign + transferAuthorization template.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeTokenAddress * | string | ERC-20 token contract address that supports the permit/authorization standard. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
tokenDomainName * | string | EIP-712 domain name of the token contract (e.g. 'USD Coin'). Required for ERC-3009 / EIP-2612 domain separator. |
tokenDomainVersion * | string | EIP-712 domain version of the token contract (e.g. '2'). Required for ERC-3009 / EIP-2612 domain separator. |
validAfter * | Unix timestamp in seconds before which the authorization is not valid. | |
validBefore * | Unix timestamp in seconds after which the authorization is no longer valid. | |
value * | string | Amount in wei the spender is authorized to pull from the signer. |
spender | Optional spender address. Defaults to the Boson Protocol diamond from SDK config. |
sign_receive_with_erc2612_permit
Generates EIP-712 typed data for an EIP-2612 Permit. Authorizes the spender (default: protocol diamond) to pull `value` from signerAddress until `deadline`. Sign locally with your wallet (EIP-712); add the resulting signature to the returned transferAuthorization { strategy: 'EIP2612', data } and pass it in send_meta_transaction.transferAuthorizations. Returns: typedData to sign + transferAuthorization template.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
deadline * | Unix timestamp in seconds after which the permit is no longer valid. | |
exchangeTokenAddress * | string | ERC-20 token contract address that supports the permit/authorization standard. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
tokenDomainName * | string | EIP-712 domain name of the token contract (e.g. 'USD Coin'). Required for ERC-3009 / EIP-2612 domain separator. |
tokenDomainVersion * | string | EIP-712 domain version of the token contract (e.g. '2'). Required for ERC-3009 / EIP-2612 domain separator. |
value * | string | Amount in wei the spender is authorized to pull from the signer. |
spender | Optional spender address. Defaults to the Boson Protocol diamond from SDK config. |
sign_receive_with_permit2
Generates EIP-712 typed data for a Uniswap Permit2 PermitTransferFrom. Authorizes the spender (default: protocol diamond) to pull `value` from signerAddress until `deadline`. permit2Address defaults to contracts.permit2 from SDK config; permit2Nonce defaults to a random uint256. Sign locally with your wallet (EIP-712); add the resulting signature to the returned transferAuthorization { strategy: 'Permit2', data } and pass it in send_meta_transaction.transferAuthorizations. Returns: typedData to sign + transferAuthorization template.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
deadline * | Unix timestamp in seconds after which the Permit2 authorization is no longer valid. | |
exchangeTokenAddress * | string | ERC-20 token contract address that supports the permit/authorization standard. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
value * | string | Amount in wei the spender is authorized to pull from the signer. |
permit2Address | Optional Uniswap Permit2 contract address. Defaults to contracts.permit2 from SDK config. | |
permit2Nonce | Optional Permit2 nonce as a uint256 string. If omitted, a random uint256 is generated. | |
spender | Optional spender address. Defaults to the Boson Protocol diamond from SDK config. |
sign_receive_with_dai_permit
Generates EIP-712 typed data for a DAI-style Permit. Authorizes the spender (default: protocol diamond) to pull DAI-style tokens from signerAddress until `expiry`. Sign locally with your wallet (EIP-712); add the resulting signature to the returned transferAuthorization { strategy: 'DAIPermit', data } and pass it in send_meta_transaction.transferAuthorizations. Returns: typedData to sign + transferAuthorization template.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeTokenAddress * | string | ERC-20 token contract address that supports the permit/authorization standard. |
expiry * | Unix timestamp in seconds after which the DAI-style permit is no longer valid. | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
tokenDomainName * | string | EIP-712 domain name of the DAI-style token (e.g. 'Dai Stablecoin'). |
value * | string | Amount in wei the spender is authorized to pull from the signer. |
spender | Optional spender address. Defaults to the Boson Protocol diamond from SDK config. |
commit_to_offer
Commits to an offer, creating an exchange and minting a voucher NFT. Caller is the buyer (signerAddress) unless 'buyer' param is set. For ERC-20 offers, call approve_exchange_token first. In metaTx mode, you can skip the approval by passing transferAuthorizations (built with a sign_receive_with_* tool) to send_meta_transaction. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerId * | string | ID of the active offer to commit to. Creates an exchange and mints a voucher NFT. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
buyer | string | Optional buyer address if different from signerAddress. When set, executionMode must be 'direct'. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
commit_to_conditional_offer
Commits to a token-gated (conditional) offer using a specific gating tokenId. Caller (signerAddress) must hold the gating token specified by the offer's condition. Use this instead of commit_to_offer for offers created via create_offer_with_condition. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerId * | string | ID of a conditional (token-gated) offer to commit to. Caller must hold the gating token specified by the offer's condition. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
tokenId * | Token ID of the gate token used to qualify for the conditional commit (relevant for ERC-721/1155 and TokenRange gating). | |
buyer | string | Optional buyer address if different from signerAddress. When set, executionMode must be 'direct'. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
commit_to_offer_and_redeem_voucher
Atomically commits to an offer and immediately redeems the voucher in a single transaction via the OrchestrationHandler. Buyer (signerAddress) must already hold any required ERC-20 allowance (approve_exchange_token), or, in metaTx mode, pass transferAuthorizations to send_meta_transaction. Skips voucher transferability and starts the dispute period clock immediately. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerId * | string | ID of the active offer to commit to and immediately redeem in a single transaction. Combines commit_to_offer + redeem_voucher via the OrchestrationHandler. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
commit_to_conditional_offer_and_redeem_voucher
Atomically commits to a token-gated (conditional) offer using a specific gating tokenId and immediately redeems the voucher in a single transaction. Buyer must hold the gating token. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerId * | string | ID of a conditional (token-gated) offer to commit to and immediately redeem in a single transaction. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
tokenId * | Token ID of the gate token used to qualify for the conditional commit (relevant for ERC-721/1155 and SpecificToken / TokenRange gating). | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
commit_to_buyer_offer
Fulfils a buyer-initiated offer (creator='BUYER') by the seller. Caller must be the seller. Provide matching collateral. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerId * | string | ID of a buyer-initiated offer (creator='BUYER') to commit to. The seller fulfils the offer. |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
collectionIndex | ||
drMutualizerAddress | Valid Ethereum address (e.g. '0xAbCd...' or '0xabcd...'). Mixed-case addresses are checksum-validated; all-lowercase and all-uppercase addresses are also accepted. | |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
royaltyInfo | object |
cancel_voucher
Cancels a committed voucher. Caller must be the buyer (voucher holder). Buyer forfeits buyerCancellationPenalty; remainder is refunded. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
redeem_voucher
Redeems a voucher, signalling physical receipt of goods and starting the dispute period clock. Caller must be the buyer. After redemption, buyer has disputePeriodDurationInMS to raise a dispute. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
complete_exchange
Completes an exchange after the dispute period expires, releasing funds to the seller. Can be called by seller after dispute period or by buyer at any time post-redemption. Returns unsigned transaction data.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangeId * | string | Numeric ID of the exchange/dispute to act on. Obtain from get_exchanges or the response of commit_to_offer. |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
executionMode | string | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. |
get_sellers_by_address
Reads seller entities associated with a specific Ethereum address. Use this to check if signerAddress already has a seller account before calling create_seller. Read-only. Returns: array of seller entities.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
includeExchanges | boolean | |
includeFunds | boolean | |
includeLogs | boolean | |
includeOffers | boolean | |
sellersFilter | object | |
sellersFirst | number | |
sellersOrderBy | string | |
sellersOrderDirection | string | |
sellersSkip | number |
get_all_products_with_not_voided_variants
Reads product groupings with at least one non-voided variant from the Boson subgraph. Useful for storefront displays. Supports pagination and ordering. Read-only.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
productsFilter | object | |
productsFirst | number | |
productsOrderBy | string | |
productsOrderDirection | string | |
productsSkip | number |
search_products
Searches products in the Boson subgraph by keywords matched against title, description, brand, category, and tags. Supports pagination, ordering, filtering, and an includeInvalidOffers flag (default false = only products with currently-valid offers). Read-only. Returns: array of product search result fragments.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
keywords * | array | List of keywords matched against product title, description, brand, category, and tags. |
includeInvalidOffers | boolean | When true, include products whose offers are outside their validity window. Defaults to false (valid offers only). |
productsFilter | object | |
productsFirst | number | |
productsOrderBy | string | |
productsOrderDirection | string | |
productsSkip | number |
validate_metadata
Validates a metadata object against the Boson Protocol schema (PRODUCT_V1, BUNDLE, BASE, etc.) without storing it. Use before store_*_metadata to catch errors early. Read-only. Returns: validation result with any errors.
| Parameter | Type | Description |
|---|---|---|
metadata * | object |
store_product_v1_metadata
Stores a ProductV1 metadata object to IPFS. Call before create_offer to get metadataUri and metadataHash. Returns: { metadataUri: 'ipfs://...', metadataHash: '0x...' }.
| Parameter | Type | Description |
|---|---|---|
attributes * | array | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
description * | string | |
exchangePolicy * | object | |
externalUrl * | string | |
image * | string | |
licenseUrl * | string | |
name * | string | |
product * | object | |
schemaUrl * | string | |
seller * | object | |
shipping * | object | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
uuid * | string | |
animationUrl | string | |
condition | string | |
imageData | string | |
productOverrides | object | |
variations | array | |
youtubeUrl | string |
store_bundle_metadata
Stores a Bundle metadata object to IPFS. Prerequisite: call store_bundle_item_product_v1_metadata and/or store_bundle_item_nft_metadata first; include their returned URLs in the items array. Returns: { metadataUri, metadataHash }.
| Parameter | Type | Description |
|---|---|---|
bundleUuid * | string | |
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
description * | string | |
externalUrl * | string | |
items * | array | |
licenseUrl * | string | |
name * | string | |
schemaUrl * | string | |
seller * | object | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
animationUrl | string | |
attributes | array | |
condition | string | |
image | string | |
imageData | string | |
youtubeUrl | string |
store_base_metadata
Stores a Base metadata object to IPFS. Use for simple offers that don't require ProductV1 or Bundle structure. Returns: { metadataUri, metadataHash } for use in create_offer.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
description * | string | |
externalUrl * | string | |
licenseUrl * | string | |
name * | string | |
schemaUrl * | string | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
animationUrl | string | |
attributes | array | |
condition | string | |
image | string | |
imageData | string | |
youtubeUrl | string |
render_contractual_agreement
Renders the legal contractual agreement text/HTML for an offer using its offer data and metadata. Use to preview or store the agreement. Returns: rendered agreement string.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
offerData * | object | |
offerMetadata * | object | |
signerAddress * | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. | |
template * | string |
store_bundle_item_product_v1_metadata
Stores a single ProductV1 bundle item's metadata to IPFS. Call once per physical product in a bundle before store_bundle_metadata. Returns: { url: 'ipfs://...' } to include in the items array.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
exchangePolicy * | object | |
product * | object | |
schemaUrl * | string | |
shipping * | object | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
uuid * | string | |
productOverrides | object | |
variations | array |
store_bundle_item_nft_metadata
Stores a single NFT bundle item's metadata to IPFS. Call once per NFT component in a bundle before store_bundle_metadata. Returns: { url: 'ipfs://...' } to include in the items array.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
name * | string | |
schemaUrl * | string | |
signerAddress * | string | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |
type * | string | |
animationUrl | string | |
animation_url | string | |
attributes | array | |
chainId | number | |
contract | string | |
description | string | |
externalUrl | string | |
external_url | string | |
image | string | |
imageData | string | |
image_data | string | |
quantity | number | |
terms | array | |
tokenId | string | |
tokenIdRange | object | |
youtubeUrl | string | |
youtube_url | string |
register_agent
Registers a dACP agent with this MCP server instance, associating its Ethereum identities and roles. The signature proves control of each signerAddress. Server-local state — no configId/signerAddress context needed. Returns: registration confirmation.
| Parameter | Type | Description |
|---|---|---|
description * | string | |
entities * | array | |
name * | string |
get_registered_agents
Returns all dACP agents registered with this MCP server instance, with their associated protocol entities and roles. No auth required.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |
get_supported_tokens
Returns ERC-20 tokens accepted as exchange tokens on the given configId deployment. Use returned addresses in exchangeTokenAddress fields of create_offer. Read-only. Returns: array of { address, name, symbol, decimals }.
| Parameter | Type | Description |
|---|---|---|
configId * | string | Boson/Fermion Protocol deployment identifier. Format: '<env>-<chainId>-<index>' e.g. 'production-137-0' (Polygon mainnet), 'testing-80002-0' (Amoy testnet). Call get_config_ids to list all valid value… |