Skip to content

AccountConfig.fromRpc

Converts a JSON-RPC account configuration to its domain representation.

Imports

Named
import { AccountConfig } from 'ox/tempo'

Examples

import { AccountConfig } from 'ox/tempo'
 
const config = AccountConfig.fromRpc({
  owners: [
    { owner: '0x1111111111111111111111111111111111111111', weight: 1 },
  ],
  salt: `0x${'00'.repeat(32)}`,
  threshold: 1,
  version: '0x0',
})

Definition

function fromRpc(
  config: Rpc,
): Config

Source: src/tempo/AccountConfig.ts

Parameters

config

  • Type: Rpc

The JSON-RPC account configuration.

Return Type

The normalized account configuration.

Config