Build
Reference
RPC
Rpc Table

RPC tables

BTC 相关

方法名例子
btc_broadcastTX<++>
btc_queryInscriptions<++>
btc_queryUTXOscurl --location 'http://test-seed.rooch.network' --header 'Content-Type: application/json' --data '{"id": 101, "jsonrpc": "2.0", "method": "btc_queryUTXOs", "params": [{"owner": "tb1ph25pk4xm36y3mt6uwclm0fgj8dgdnf5u7xf987qvyv58x987cldsefe2dh"}]}'
方法名例子
DryRunTransactionResponseView<++>
rooch_executeRawTransaction<++>
rooch_executeViewFunctioncurl --location 'http://test-seed.rooch.network' --header 'Content-Type: application/json' --data '{"id": 101, "jsonrpc": "2.0", "method": "rooch_executeViewFunction", "params": [{"function_id":"0x2::timestamp::now_milliseconds", "ty_args":[], "args":[]}]}'
rooch_getBalancecurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getBalance", "params": ["0x38e08817191d953d0037a03ffdcdc3f6cc8e673dfa73216f08747a1618fa163d", "0x3::gas_coin::RGas"], "id": 0}'
rooch_getBalancescurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getBalances", "params": ["0x38e08817191d953d0037a03ffdcdc3f6cc8e673dfa73216f08747a1618fa163d"], "id": 0}'
rooch_getChainIDcurl --location 'https://test-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getChainID", "params": [], "id": 0}'
rooch_getEventsByEventHandle<++>
rooch_getFieldStates<++>
rooch_getModuleABIcurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getModuleABI", "params": ["0x3", "timestamp"], "id": 0}'
rooch_getObjectStates<++>
rooch_getStates<++>
rooch_getTransactionsByHash<++>
rooch_getTransactionsByOrdercurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getTransactionsByOrder", "params": [], "id": 0}'
rooch_listFieldStates<++>
rooch_listStatescurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_listStates", "params": ["/resource/0x3"], "id": 0}'
rooch_queryEvents<++>
rooch_queryObjectStates<++>
rooch_queryTransactionscurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_queryTransactions", "params": [{"tx_hashes":["0x33fc1e43992079b363b858efe266927642533a56183edefac8b0607edeeeeb20"]}], "id": 0}'
rooch_repairIndexer<++>
rooch_sendRawTransaction<++>
rooch_statuscurl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_status", "params": [], "id": 0}'
rooch_syncStates<++>