FundingRequirement.fromRpc
Converts RPC quantities to a funding requirement.
Imports
Named
import { FundingRequirement } from 'ox/tempo'Examples
import { FundingRequirement } from 'ox/tempo'
const token = '0x20c0000000000000000000000000000000000001' as const
FundingRequirement.fromRpc({ token, amount: '0x32', sources: [] })Definition
function fromRpc(
value: Rpc,
): FundingRequirementSource: src/tempo/FundingRequirement.ts
Parameters
value
- Type:
Rpc
value.data
- Type:
0x${string}
value.sources
- Type:
readonly { data: 0x${string}; target: abitype_Address; }[]
value.target
- Type:
abitype_Address
Return Type
FundingRequirement.FundingRequirement

