RPC tables
BTC 相关
方法名 | 例子 |
---|---|
btc_broadcastTX | <++> |
btc_queryInscriptions | <++> |
btc_queryUTXOs | curl --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_executeViewFunction | curl --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_getBalance | curl --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_getBalances | curl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getBalances", "params": ["0x38e08817191d953d0037a03ffdcdc3f6cc8e673dfa73216f08747a1618fa163d"], "id": 0}' |
rooch_getChainID | curl --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_getModuleABI | curl --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_getTransactionsByOrder | curl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_getTransactionsByOrder", "params": [], "id": 0}' |
rooch_listFieldStates | <++> |
rooch_listStates | curl --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_queryTransactions | curl --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_status | curl --location 'https://main-seed.rooch.network/' --header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "rooch_status", "params": [], "id": 0}' |
rooch_syncStates | <++> |