Skip to content

Commit

Permalink
Update body structure (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnegi10 authored May 7, 2022
1 parent 7e43b9e commit 1bf5cd0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/request.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Generate a valid body for HTTP request
function generate_body(RPC_name::String, params)

body_dict = Dict("method" => RPC_name,
"params" => params,
"id" => "jsonrpc")
body_dict = Dict("method" => RPC_name,
"params" => params,
"id" => 1,
"jsonrpc" => "2.0")

body = JSON.json(body_dict)

Expand Down

0 comments on commit 1bf5cd0

Please sign in to comment.