Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API response time is slow on converted persistence from testnet #1605

Open
chetan-zilliqa opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@chetan-zilliqa
Copy link
Contributor

Here are some of the examples.

chetan_zilliqa_com@zq2-converter:~$ curl --request POST \
  --url http://localhost:4201/ \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "GetSmartContractCode",
    "params": ["zil15tjx2l0gzzxaxucwk50stgw5smthhckl8qcqmf"]
}'|jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 67607  100 67468  100   139   6102     12  0:00:11  0:00:11 --:--:-- 17533
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {

and

chetan_zilliqa_com@zq2-converter:~$ curl --request POST \
  --url http://localhost:4201/ \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "GetTransaction",
                "params": ["99ad380174a8611a56ea3e8e33d7016ad8767928ba0acedc495bdd830a9d5bd4"]
}'|jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   710  100   557  100   153     90     24  0:00:06  0:00:06 --:--:--   141
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "ID": "99ad380174a8611a56ea3e8e33d7016ad8767928ba0acedc495bdd830a9d5bd4",
    "version": "21823489",
    "nonce": "13967",
    "toAddr": "87f40d6285ec611722994ac5fab8b943a8f13de9",
    "senderPubKey": "0x035413c0b892df1cbd42813af3cf0b1254ebe3a3a2eb2b47915efc0bb2586614da",
    "amount": "0",
    "signature": "0x3e49a1d7c1536957a7f692d7f5ac27a26b82c229dc2fabe9930a36d8f25f74ffb3002851bbbc94fd1f404646416f6f991cb607a22198c7c0ad1abdf3c5f4073e",
    "receipt": {
      "cumulative_gas": "0",
      "epoch_num": "7007604",
      "success": true
    },
    "gasPrice": "204000000000000",
    "gasLimit": "50"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant