Skip to content

getBit

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / op / getBit

Function: getBit()

getBit(a, b): uint64

Defined in: packages/algo-ts/src/op.ts:942

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

Parameters

a

uint64 | bytes

b

uint64

Returns

uint64

See

Native TEAL opcode: getbit Min AVM version: 3