Skip to content
Wallet Lock Interface

Lock WalletTry API

POST chain_tvm (Lock Wallet)

Wallet locking is performed by the wallet owner. Received tokens are released according to the lock rules.

The wallet cannot be locked repeatedly. If it is already locked, the lock button is disabled.

Parameters

nums:tokenamount

begin:start date

days: lockdays

type: (0 dailyrelease, 1 at maturityrelease)

Sliceno: metaspace number

Return Values

txhash:transactionhash

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_tvm",
"params": [
  "opcode=token&subcode=lock&nums=123&begin=12345678&days=1&type=0&sliceno=0",
  "encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}
Response
{
 "jsonrpc":  "3.0",
 "id":  "aa80aa0c6bb0c7d81ac7e5b3",
 "result": {
   "ret":  "0",
   "err":  "",
   "content": {
     "txhash":  "0x6885997ca51fa08ffded573088b0c5c294652ec842ac7f3182d32e30ce261025"
  }
}
}

On this page