HiRPC.action

Creates a sender with a runtime method name

  1. immutable(Sender) action(string method, Document params, uint id)
  2. immutable(Sender) action(string method, T params, uint id)
  3. immutable(Sender) action(string method, const(HiBON) params, uint id)
    struct HiRPC
    const
    immutable(Sender)
    action
    (
    string method
    ,
    const(HiBON) params = null
    ,
    const uint id = uint.max
    )

Parameters

method string

method name

params const(HiBON)

argument for the method

id uint

optional id

Return Value

Type: immutable(Sender)