{"uid":"cap_mLRKW1OmBzY1ozRPIxheJ","slug":"bitwise-and-arbitrary-precision-integer-operation-ea739260","name":"Bitwise AND — Arbitrary-Precision Integer Operation","description":"Bitwise AND 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/and","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_qj90JErIjlY2eGZ4fOiLL","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 AND of two or more non-negative integers (as decimal strings) with arbitrary precision, returning the result in decimal, hexadecimal, and binary formats.","exampleAgentPrompt":"Compute the bitwise AND of these three numbers: 255, 170, and 204 — give me the result in decimal, hex, and binary.","exampleUseCases":[{"title":"Apply subnet mask to IP address","prompt":"I need to bitwise AND the IP address 192168001045 with the subnet mask 4294967040 — both as decimal integers — so I can figure out the network address. Give me the result in decimal and binary."},{"title":"Find common permission flags","prompt":"I have three permission bitmasks: 7, 5, and 6. AND them all together so I can find which permissions are set in every single one — show me the result in decimal, hex, and binary."},{"title":"Mask a large cryptographic number","prompt":"Can you AND these two big numbers — 123456789012345678901234567890 and 987654321098765432109876543210 — and tell me what bits they have in common? I need the answer in decimal, hex, and binary."}],"resultDescription":"Returns an object containing the AND result expressed in three formats: decimal (string), hexadecimal (string), and binary (string). Accepts between 2 and 256 arbitrary-precision non-negative integers as decimal string inputs.","failureModes":["Fewer than 2 values provided — validation error","More than 256 values provided — validation error","Non-numeric or negative strings in values array — pattern validation failure","Malformed JSON body — 400 bad request","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need arbitrary-precision bitwise AND across two or more very large integers that exceed native 64-bit integer limits, or when you need the result in multiple formats (decimal, hex, binary) simultaneously. It is purpose-built for AND specifically, unlike generic big-number libraries. Prefer it when precision and multi-format output matter over implementing the operation locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:14.324Z","isFirstParty":false}