Skip to content

FundingPolicy.fromRpc

Converts an RPC policy authorization to its domain representation.

Imports

Named
import { FundingPolicy } from 'ox/tempo'

Examples

import { FundingPolicy } from 'ox/tempo'
 
FundingPolicy.fromRpc('0x7')

Definition

function fromRpc(
  value: Authorization<Hex.Hex>,
): Authorization

Source: src/tempo/FundingPolicy.ts

Parameters

value

  • Type: Authorization<Hex.Hex>

value.admins

  • Type: readonly abitype_Address[]

Accounts authorized to modify the policy.

value.rules

  • Type: Rules

Committed funding permissions.

Return Type

Authorization