rpc

未分类的rpc命令。

$ cldi help rpc
cldi-rpc
Other RPC commands

USAGE:
    cldi rpc <SUBCOMMAND>

OPTIONS:
    -h, --help    Print help information

SUBCOMMANDS:
    add-node     call add-node rpc
    store-abi    Store EVM contract ABI
    help         Print this message or the help of the given subcommand(s)

add-node

调用controller的add-node接口,这个接口曾用于让network微服务连接一个新的节点。

$ cldi rpc add-node -h
cldi-rpc-add-node
call add-node rpc

USAGE:
    cldi rpc add-node <host> <port> [tls]

ARGS:
    <host>    the host of the new node
    <port>    the port of the new node
    <tls>     the domain name of the new node

OPTIONS:
    -h, --help    Print help information

store-abi

通过发送交易,在链上保存合约的ABI。

$ cldi rpc store-abi -h
cldi-rpc-store-abi
Store EVM contract ABI

USAGE:
    cldi rpc store-abi [OPTIONS] <addr> <abi>

ARGS:
    <addr>
    <abi>

OPTIONS:
    -q, --quota <quota>                the quota of this tx [default: 3000000]
        --until <valid-until-block>    this tx is valid until the given block height. `+h` means
                                       `<current-height> + h` [default: +95]
    -h, --help                         Print help information