Skip to content

getBit

Algorand TypeScript


Algorand TypeScript / op / getBit

getBit(a, b): boolean

Defined in: op.ts:964

Bth bit of (byte-array or integer) A. If B is greater than or equal to the bit length of the value (8*byte length), the program fails see explanation of bit ordering in setbit

uint64 | bytes

uint64

boolean

Native TEAL opcode: getbit Min AVM version: 3