{"uid":"cap_zU51oqsFI8vIPK1xO0kmK","slug":"bitwise-xor-arbitrary-precision-af6e8c57","name":"Bitwise XOR (Arbitrary-Precision)","description":"Bitwise XOR across two or more non-negative integers (given as decimal strings, evaluated as arbitrary-precision BigInt). Returns the result in decimal, hex and binary.","url":"https://bitwise.openverbs.com/v1/xor","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["values"],"properties":{"values":{"type":"array","items":{"type":"string","pattern":"^\\d+$"},"maxItems":256,"minItems":2,"description":"Two or more non-negative integers as decimal strings."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L-Jb6hurXHQqZLEGJj4GS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the bitwise XOR of two or more non-negative integers of arbitrary size, returning results in decimal, hexadecimal, and binary.","exampleAgentPrompt":"XOR these three numbers together and give me the result in decimal, hex, and binary: 123456789012345678901234567890, 987654321098765432109876543210, and 111111111111111111111111111111.","exampleUseCases":[{"title":"Cryptographic key mixing","prompt":"I need to XOR two cryptographic keys together — the values are 340282366920938463463374607431768211455 and 255211775190703847597530955573826158592. Give me the result in hex and binary."},{"title":"XOR checksum over dataset","prompt":"Compute the XOR of all these four device IDs to generate a combined checksum: 1099511627775, 549755813887, 274877906943, and 137438953471. Show me the decimal and hex result."},{"title":"Bit-toggling via XOR mask","prompt":"I have the integer 9999999999999999999999999999 and I want to toggle specific bits using the mask 1234567890123456789012345678 — can you XOR them and show me the binary result?"}],"resultDescription":"Returns the XOR result of all input integers in three formats: decimal string, hexadecimal string, and binary string. The computation uses arbitrary-precision BigInt arithmetic, so there is no upper limit on integer size.","failureModes":["Input contains fewer than 2 values — returns validation error","Input contains more than 256 values — exceeds maxItems limit","Input string contains non-digit characters or is negative — fails pattern validation","Malformed JSON body — returns 400 bad request","Payment not provided or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need XOR across arbitrarily large integers that exceed 64-bit or 128-bit integer limits, or when you need the result in multiple formats (decimal, hex, binary) simultaneously. Prefer it over manual BigInt libraries when operating in an agentic workflow that already handles x402 micropayments, or when you need to XOR more than two values in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:35.612Z","isFirstParty":false}