Skip to main content

debug_setVMLogTarget RPC Method

Sets the output target of vmlog precompiled contract. When the output target is a file, logs from vmlog calls in smart contracts will be written to DATADIR/log/vm.log.

Updated on
Aug 7, 2024

debug_setVMLogTarget RPC Method

Parameters

target
string
REQUIRED
The target value

Returns

result
string
Return the output target
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "debug_setVMLogTarget",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": [3]
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free