Skip to content

AccountOperation.toRpc

Converts an account operation to its JSON-RPC representation.

Imports

Named
import { AccountOperation } from 'ox/tempo'

Examples

import { AccountOperation } from 'ox/tempo'
 
const operationRpc = AccountOperation.toRpc(operation)

Definition

function toRpc<operation>(
  operation: operation,
): toRpc.ReturnValue<operation>

Source: src/tempo/AccountOperation.ts

Parameters

operation

  • Type: operation

Account operation.

Return Type

The JSON-RPC operation.

toRpc.ReturnValue<operation>