{"uid":"cap_k0hpGduTb5wDMlhGC8EWj","slug":"bitwise-or-arbitrary-precision-bigint-2c1a4b4d","name":"Bitwise OR (Arbitrary-Precision BigInt)","description":"Bitwise OR 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/or","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_uIrFxjOWq5vBD_x8dA9XJ","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 OR across two or more arbitrarily large non-negative integers supplied as decimal strings, returning the result in decimal, hexadecimal, and binary.","exampleAgentPrompt":"Can you bitwise OR these three numbers for me — 255, 4096, and 16711680 — and show me the result in decimal, hex, and binary?","exampleUseCases":[{"title":"Merging Unix permission bitmasks","prompt":"I have three Unix permission values — 292, 73, and 365 — can you OR them together and tell me the combined permission as a decimal, hex, and binary number?"},{"title":"Combining feature flag integers","prompt":"We store feature flags as integers: 1024, 512, and 2048. What's the bitwise OR of all three so I know which flags are active in the merged set?"},{"title":"Crypto bitmask union across large integers","prompt":"I have two really large integers — 340282366920938463463374607431768211455 and 170141183460469231731687303715884105727 — what's their bitwise OR in decimal, hex, and binary?"}],"resultDescription":"Returns an object containing the bitwise OR result expressed in three formats: decimal string, hexadecimal string, and binary string. The computation supports arbitrarily large integers via BigInt evaluation.","failureModes":["Fewer than 2 values provided — validation error","Non-numeric or negative value string passed — pattern mismatch error","More than 256 values in the array — maxItems exceeded error","Malformed JSON body — parse error","Insufficient payment balance — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need bitwise OR on arbitrarily large integers (beyond 64-bit) that standard language runtimes cannot handle natively, or when you need multi-format output (decimal, hex, binary) in a single call. Prefer it over in-process solutions when operating in environments without BigInt support, or when auditing/logging of bitwise operations via an external service is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:12.505Z","isFirstParty":false}