KeyAuthorization.fromTuple
Converts an KeyAuthorization.Tuple to an KeyAuthorization.KeyAuthorization.
Imports
Named
import { KeyAuthorization } from 'ox/tempo'Examples
import { KeyAuthorization } from 'ox/tempo'
const authorization = KeyAuthorization.fromTuple([
[
'0x',
'0x00',
'0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
'0x174876e800',
[['0x20c0000000000000000000000000000000000001', '0xf4240']],
],
'0x01a068a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b907e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064',
])Unsigned Key Authorization tuple (no signature):
import { KeyAuthorization } from 'ox/tempo'
const authorization = KeyAuthorization.fromTuple([
[
'0x',
'0x00',
'0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
'0x174876e800',
[['0x20c0000000000000000000000000000000000001', '0xf4240']],
],
])Definition
function fromTuple<tuple>(
tuple: tuple,
): fromTuple.ReturnType<tuple>Source: src/tempo/KeyAuthorization.ts
Parameters
tuple
- Type:
tuple
The Key Authorization tuple.
Return Type
The KeyAuthorization.KeyAuthorization.
fromTuple.ReturnType<tuple>

