Stores binary data in the local database.
Note this function is deprecated and will be removed in the future.
String
- Database name.String
- Key name.DATA
- The data to store.params: [
"testDB",
"myKey",
"0x68656c6c6f20776f726c64"
]
Boolean
- returns true
if the value was stored, otherwise false
.
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"db_putHex","params":["testDB","myKey","0x68656c6c6f20776f726c64"],"id":73}'
// Result
{
"id":1,
"jsonrpc":"2.0",
"result": true
}