Skip to main content
POST
curl --request POST \
  --url https://devnet-as.magicblock.app/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlockTime",
  "params": [
    5
  ]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null,
  "error": null
}
curl --request POST \
  --url https://devnet-as.magicblock.app/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlockTime",
  "params": [
    5
  ]
}'

Body

application/json
jsonrpc
enum<string>
default:2.0
required
Available options:
2.0
id
integer
default:1
required
method
enum<string>
default:getBlockTime
required
Available options:
getBlockTime
params
(string | object)[]
required

Method-specific parameters.

Response

200 - application/json

Successful response

jsonrpc
enum<string>
default:2.0
required
Available options:
2.0
id
required
result

Method-specific result payload.

error
object