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. Returns unsigned transaction data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | No | Optional buyer address if different from signerAddress. When set, executionMode must be 'direct'. | |
| offerId | Yes | ID of the active offer to commit to. Creates an exchange and mints a voucher NFT. | |
| configId | Yes | 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 values for this server. | |
| executionMode | No | 'direct' = standard on-chain tx (sign locally with your wallet → send_signed_transaction). 'metaTx' = gasless relay via Biconomy (send_meta_transaction). Defaults to 'direct'. | |
| signerAddress | Yes | Ethereum address that will sign and send this transaction. Must match the wallet that will sign the returned transaction locally. |