Skip to content

FundingPolicy.toRpc

Converts a policy authorization to its RPC representation.

Imports

Named
import { FundingPolicy } from 'ox/tempo'

Examples

import { FundingPolicy } from 'ox/tempo'
 
FundingPolicy.toRpc(7n)

Definition

function toRpc(
  value: Authorization<bigint | number | Hex.Hex>,
): Rpc

Source: src/tempo/FundingPolicy.ts

Parameters

value

  • Type: Authorization<bigint | number | Hex.Hex>

value.admins

  • Type: readonly abitype_Address[]

Accounts authorized to modify the policy.

value.rules

  • Type: Rules

Committed funding permissions.

Return Type

Rpc