post https://api.infstones.com/theta/mainnet/
This API locks an account. A locked account cannot send out Theta/TFuel tokens.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
address | ✅ | String | The address of the account to be locked |
"params":[
{
"address": "0x7F7Bf878527AC6DE7b6fe12acD664D59d20E0001"
}
]
Result
Result Fields
Key | Type | Detail |
---|---|---|
unlocked | Boolean | A boolean indicating if the account is still unlocked |
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"thetacli.LockKey","params":[{"address":"0x7F7Bf878527AC6DE7b6fe12acD664D59d20E0001"}],"id":1}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"unlocked": false
}
}