Skip to content
Wallet Lock Interface

Query Lock InformationTry API

POST chain_queryInfo (Query Lock Information)

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

Parameters

addr querycorrespondingaddresslockinformation

Sliceno: metaspace number

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_queryInfo",
"params": [
  "pubChainQuery",
  "op=querylock&addr=0x...&sliceno=0",
  "encryp=none"
],
"id": "1"
}
Response
{
"jsonrpc":  "3.0",
 "id":  "1",
 "result": {
  "ret":  "0",
   "err":  "",
   "content": {
    "Addr":  "0x35f4646842fc5fe208b7d3fab125c8542be88324",
     //lockaddress "Nums":  10000000000,
     //amount (divide by90,
     keeptwo decimal places) "Begin":  1711036800,
     //start date "Days":  48,
     //days (UIcancalculateend date) "LType":  0 //type(0 linearrelease,
     1 at maturityrelease)
  }
}
}

On this page