Sponsor
Sumus
Like Grok Bot, for Teams
Sponsor
TinyFish
Free web search and fetch for agents. Claim 30% bonus!
Sponsor
Singularis
Singularis is unlimited computation. Bring us your hardest problems.
Sponsor
Douchat
Where AI agents work and talk together.
Sponsor
AgentBounties.app
Pay for results, not tokens. Fund a bounty. Let AI agents compete and collaborate to solve your problems.
Sponsor
Snapok
Agent-native screenshots for Mac
Basic information
Transport
Streamable HTTP
Authentication
None
Version
1.0.0
Author
boson-protocol
Quality
93 (A)
Views
2.7K
About Boson Protocol MCP Server
Boson Protocol is a remote MCP server available at https://mcp.bosonprotocol.io.
Boson Protocol is a remote MCP server listed in the AddMCP.net directory. It exposes 63 tools, including get_config_ids, get_funds, get_disputes, get_dispute_by_id and more. Supported transport: Streamable HTTP.
Connection details
https://mcp.bosonprotocol.io/mcp
Setup
claude mcp add boson-protocol --transport http https://mcp.bosonprotocol.io/mcp
[mcp_servers.boson-protocol] url = "https://mcp.bosonprotocol.io/mcp"
{
"mcpServers": {
"boson-protocol": {
"url": "https://mcp.bosonprotocol.io/mcp"
}
}
}
{
"servers": {
"boson-protocol": {
"type": "http",
"url": "https://mcp.bosonprotocol.io/mcp"
}
}
}
Boson Protocol MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"boson-protocol": {
"type": "http",
"url": "https://mcp.bosonprotocol.io/mcp"
}
}
}
Boson Protocol MCP Server tools
-
get_config_ids
— Returns all valid configId values for this server. Call first to discover which network/deployment to use. No auth required.
(no parameters) -
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 }.
fundsSkip:number, fundsFirst:number, fundsOrderBy:string, fundsOrderDirection:string, fundsFilter:object, configId:string* -
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.
disputesSkip:number, disputesFirst:number, disputesOrderBy:string, disputesOrderDirection:string, disputesFilter:object, configId:string* -
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.
disputeId:string*, queryVars, configId:string* -
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.
exchangesSkip:number, exchangesFirst:number, exchangesOrderBy:string, exchangesOrderDirection:string, exchangesFilter:object, configId:string* -
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.
offersSkip:number, offersFirst:number, offersOrderBy:string, offersOrderDirection:string, offersFilter:object, includeExchanges:boolean, exchangesSkip:number, exchangesFirst:number, exchangesOrderBy:string, exchangesOrderDirection:string, exchangesFilter:object, configId:string*, … -
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.
sellersSkip:number, sellersFirst:number, sellersOrderBy:string, sellersOrderDirection:string, sellersFilter:object, includeExchanges:boolean, includeOffers:boolean, includeFunds:boolean, includeLogs:boolean, configId:string* -
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.
disputeResolversSkip:number, disputeResolversFirst:number, disputeResolversOrderBy:string, disputeResolversOrderDirection:string, disputeResolversFilter:object, configId:string* -
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'.
executionMode:string, metadataUri:string*, metadataHash:string*, exchangeTokenAddress:string, price:string*, sellerDeposit*, agentId, buyerCancellationPenalty*, quantityAvailable:number*, validFromDateInMS:number*, validUntilDateInMS:number*, voucherRedeemableFromDateInMS:number*, … -
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.
condition:object*, executionMode:string, metadataUri:string*, metadataHash:string*, exchangeTokenAddress, price*, sellerDeposit*, agentId, buyerCancellationPenalty*, quantityAvailable:number*, validFromDateInMS:number*, validUntilDateInMS:number*, … -
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.
configId:string*, signerAddress:string* -
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.
offerCreator:string*, committer*, collectionIndex:string, royaltyInfo:object, drMutualizerAddress, conditionalTokenId, condition:object, useDepositedFunds:boolean, sellerId*, buyerId*, executionMode:string, metadataUri:string*, … -
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.
executionMode:string, signature:string*, offerCreator:string*, committer*, collectionIndex:string, royaltyInfo:object, drMutualizerAddress, conditionalTokenId, condition:object, useDepositedFunds:boolean, sellerId*, buyerId*, … -
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.
executionMode:string, signature:string*, offerCreator:string*, committer*, collectionIndex:string, royaltyInfo:object, drMutualizerAddress, conditionalTokenId, condition:object, useDepositedFunds:boolean, sellerId*, buyerId*, … -
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.
offerId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
condition:object, useDepositedFunds:boolean, sellerId*, buyerId*, executionMode:string, metadataUri:string*, metadataHash:string*, exchangeTokenAddress, price*, sellerDeposit*, agentId, buyerCancellationPenalty*, … -
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.
fullOffers:array*, configId:string*, signerAddress* -
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.
executionMode:string, type:string*, name:string, description:string, legalTradingName:string, kind:string*, website:string, images:array, contactLinks:array, contactPreference:string*, socialLinks:array, salesChannels:array, … -
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.
executionMode:string, type:string*, name:string, description:string, legalTradingName:string, kind:string*, website:string, images:array, contactLinks:array, contactPreference:string*, socialLinks:array, salesChannels:array, … -
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.
signedTransaction:string*, configId:string* -
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.
functionName:string*, functionSignature:string*, nonce:string|number*, sigR:string*, sigS:string*, sigV:string|number*, transferAuthorizations:array, configId:string*, signerAddress:string* -
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.
contractAddress:string*, functionSignature:string*, sigR:string*, sigS:string*, sigV:string|number*, configId:string*, signerAddress* -
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.
contractAddress:string*, request:object*, domainSeparator:string*, signature:string*, configId:string*, signerAddress* -
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.
entityId:string*, list:array*, configId:string*, signerAddress*, executionMode:string -
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.
entityId:string*, tokenAddress:string*, amount*, configId:string*, signerAddress*, executionMode:string -
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.
exchangeId:string*, newDisputeTimeout*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, configId:string*, signerAddress:string* -
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.
exchangeIds:array*, configId:string*, signerAddress:string* -
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.
exchangeId:string*, buyerPercentBasisPoints*, sigR:string*, sigS:string*, sigV*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, buyerPercent*, configId:string*, signerAddress:string* -
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.
exchangeId:string*, configId:string*, signerAddress:string* -
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.
exchangeId:string*, configId:string*, signerAddress:string* -
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).
exchangeId:string*, buyerPercentBasisPoints*, configId:string*, signerAddress:string* -
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.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeTokenAddress:string*, amount:string*, configId:string*, signerAddress*, executionMode:string -
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.
exchangeTokenAddress:string*, value:string*, spender, tokenDomainName:string*, tokenDomainVersion:string*, validAfter*, validBefore*, configId:string*, signerAddress* -
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.
exchangeTokenAddress:string*, value:string*, spender, tokenDomainName:string*, tokenDomainVersion:string*, deadline*, configId:string*, signerAddress* -
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.
exchangeTokenAddress:string*, value:string*, spender, deadline*, permit2Address, permit2Nonce, configId:string*, signerAddress* -
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.
exchangeTokenAddress:string*, value:string*, spender, tokenDomainName:string*, expiry*, configId:string*, signerAddress* -
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.
offerId:string*, buyer:string, configId:string*, signerAddress*, executionMode:string -
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.
offerId:string*, tokenId*, buyer:string, configId:string*, signerAddress*, executionMode:string -
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.
offerId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
offerId:string*, tokenId*, configId:string*, signerAddress:string*, executionMode:string -
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.
offerId:string*, collectionIndex, royaltyInfo:object, drMutualizerAddress, configId:string*, signerAddress*, executionMode:string -
cancel_voucher
— Cancels a committed voucher. Caller must be the buyer (voucher holder). Buyer forfeits buyerCancellationPenalty; remainder is refunded. Returns unsigned transaction data.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
exchangeId:string*, configId:string*, signerAddress:string*, executionMode:string -
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.
address:string*, sellersSkip:number, sellersFirst:number, sellersOrderBy:string, sellersOrderDirection:string, sellersFilter:object, includeExchanges:boolean, includeOffers:boolean, includeFunds:boolean, includeLogs:boolean, configId:string* -
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.
productsSkip:number, productsFirst:number, productsOrderBy:string, productsOrderDirection:string, productsFilter:object, configId:string* -
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.
keywords:array*, includeInvalidOffers:boolean, productsSkip:number, productsFirst:number, productsOrderBy:string, productsOrderDirection:string, productsFilter:object, configId:string* -
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.
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...' }.
schemaUrl:string*, type:string*, uuid:string*, name:string*, description:string*, externalUrl:string*, licenseUrl:string*, youtubeUrl:string, condition:string, image:string*, imageData:string, animationUrl: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 }.
schemaUrl:string*, type:string*, name:string*, description:string*, image:string, imageData:string, externalUrl:string*, licenseUrl:string*, youtubeUrl:string, condition:string, animationUrl:string, attributes:array, … -
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.
schemaUrl:string*, type:string*, name:string*, description:string*, image:string, imageData:string, externalUrl:string*, licenseUrl:string*, condition:string, animationUrl:string, youtubeUrl:string, attributes:array, … -
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.
template:string*, offerData:object*, offerMetadata:object*, configId:string*, signerAddress* -
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.
schemaUrl:string*, type:string*, uuid:string*, product:object*, variations:array, shipping:object*, exchangePolicy:object*, productOverrides:object, configId:string*, signerAddress:string* -
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.
schemaUrl:string*, type:string*, name:string*, description:string, image:string, imageData:string, externalUrl:string, animationUrl:string, youtubeUrl:string, image_data:string, external_url:string, animation_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.
name:string*, description:string*, entities:array* -
get_registered_agents
— Returns all dACP agents registered with this MCP server instance, with their associated protocol entities and roles. No auth required.
configId:string* -
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 }.
configId:string*
Overview
What is Boson Protocol?
Boson Protocol is a remote MCP server available at https://mcp.bosonprotocol.io.
Boson Protocol tools
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 }.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.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.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.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.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.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.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'.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.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.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.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.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.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.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.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.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.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.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. etherswallet.signTransaction(tx)). Returns: transaction hash, block number, and gas used.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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).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.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.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 pullvaluefrom 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.sign_receive_with_erc2612_permit: Generates EIP-712 typed data for an EIP-2612 Permit. Authorizes the spender (default: protocol diamond) to pullvaluefrom signerAddress untildeadline. 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.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In