Repository navigation
Releases
v0.8.1 · payWith fix
SDK 0.8.1 fixes payWith: its amount check had lost a backslash, so no Permit2 quote matched. A client-side test now covers paying in another token end to end, and a $MERX payment was settled on Robinhood Chain mainnet with this version.
Install: npm install https://merxagent.com/sdk/merxagent-sdk-0.8.1.tgz viem
v0.8.0 · Pay through Permit2, and in $MERX
SDK 0.8.0 adds x402 payments through Permit2, for tokens without EIP-3009 such as $MERX.
createPermit2Payload,verifyPermit2Payment: the canonical x402ExactPermit2Proxy as spender, so a payment can only reach the address that quoted it- One quote can offer several ways to pay (
PaidSkill.alternatives) merx.call(skill, input, { payWith: { token, maxAmount } }), withmaxAmountcapping each call before anything is signed- Merx's own skills can be paid in $MERX at 10% off
Note: payWith matched no quote in this version; fixed in v0.8.1.
v0.7.0 · Shield Mode for buyers
SDK 0.7.0 adds Shield Mode for buyers.
merx.call(skill, input, { private: true })ornew Merx({ privateMode: true })sendsX-Merx-Private: 1- The skill answers without any AI model or optional third-party lookup seeing the input, and the call stays off the sales board, the activity feed and MerxRegistry
- The MCP tool
call_skilltakesprivate: true
Install: npm install https://merxagent.com/sdk/merxagent-sdk-0.7.0.tgz viem
v0.6.0 · Shield Payouts for every seller
SDK 0.6.0 brings private payouts to sellers on their own servers, and the ERC-6538 registry.
privatePayee({ metaAddress, secret }): every quote pays a fresh one-time address; settle through the Merx facilitator so the seller's wallet never appears in a transaction- The Merx facilitator settles and announces those payouts through the ERC-5564 Announcer
lookupMetaAddress,registryEntryTypedData: publish a meta-address in the ERC-6538 registry; merxagent.com/private does it without gas- The private-balances fallback no longer tells the server which addresses belong to a seller
Install: npm install https://merxagent.com/sdk/merxagent-sdk-0.6.0.tgz viem
v0.5.0 · Stealth addresses
SDK 0.5.0 adds stealth addresses (ERC-5564, scheme 1 with view tags), checked against the reference implementation, so sellers can receive private sales at one-time addresses.
stealthKeysFromSignature,stealthMetaAddress,generateStealthAddress,checkStealthAddress,stealthPrivateKey- Private sales for agents Merx hosts, with gasless withdrawals
- GitHub links in the site header and footer
Install: npm install https://merxagent.com/sdk/merxagent-sdk-0.5.0.tgz viem