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

JSON RPC layer #38

Open
kamikazechaser opened this issue Nov 4, 2024 · 1 comment
Open

JSON RPC layer #38

kamikazechaser opened this issue Nov 4, 2024 · 1 comment
Labels
enhancement New feature or request sarafu.network

Comments

@kamikazechaser
Copy link
Contributor

Add support for:

  • eth_sendTransaction
  • eth_sign

Any other useful JSON RPC method commonly consumed by wallets.

@kamikazechaser kamikazechaser added enhancement New feature or request sarafu.network labels Nov 4, 2024
@kamikazechaser
Copy link
Contributor Author

curl http://localhost:5003/api/v2/jrpc \
                      -X POST \
                      -H "Content-Type: application/json" \
                      -H "Authorization: Bearer eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNLZXkiOiIweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJzZXJ2aWNlIjp0cnVlLCJpc3MiOiJldGgtY3VzdG9kaWFsLWRldiIsInN1YiI6ImxvY2FsZGV2IiwiZXhwIjoxNzY0OTE5MDE4LCJpYXQiOjE3MzMzODMwMTh9.VPDUq4drogHCNM2zu4CxA0dcMrOJPtjCry1IJenUBrz_yZH9kn3QGJYoVL3_l3cYJS2kfxJxSJDA91uJwzvsBQ" \
                      -d '{
            "jsonrpc": "2.0",
            "id": 0,
            "method": "eth_sendTransaction",
            "params": [
              {
                "from": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
                "to": "0x853d955acef822db058eb8505911ed77f175b99e",
                "value": "0xde0b6b3a7640000",
                "data": "0x"
              }
            ]
          }'
{"jsonrpc":"2.0","result":"0x0000000000000000000000000000000000000000000000000000000000000000","id":0}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sarafu.network
Projects
None yet
Development

No branches or pull requests

1 participant