{"slug":"bitwise-openverbs-com-v1-shift-2c53de","title":"Shift a non-negative integer left or right by `amount` bits","host":"bitwise.openverbs.com","method":"POST","resource":"https://bitwise.openverbs.com/v1/shift","category":"other","description":"Shift a non-negative integer left or right by `amount` bits. A right shift is logical (fills with zeros). A left shift grows freely unless a `width` is given, in which case the result is masked to that width and the input must fit it. Returns decimal, hex and binary.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":470,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"amount":1,"direction":"left","value":"42","width":1},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"amount":{"description":"Number of bits to shift.","maximum":1024,"minimum":0,"type":"integer"},"direction":{"description":"Shift direction.","enum":["left","right"],"type":"string"},"value":{"description":"Non-negative integer as a decimal string.","pattern":"^\\d+$","type":"string"},"width":{"description":"Optional bit width to mask a left shift to.","maximum":1024,"minimum":1,"type":"integer"}},"required":["value","amount","direction"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":470,"error":null}],"description_full":"Shift a non-negative integer left or right by `amount` bits. A right shift is logical (fills with zeros). A left shift grows freely unless a `width` is given, in which case the result is masked to that width and the input must fit it. Returns decimal, hex and binary.","last_updated":"2026-09-06T08:13:14.427Z","schemes":["exact"]}