Skip to main content

Overview

StatusMeaning
404Data not found
405Wrong HTTP method (use GET or POST)
409Resource exists but wrong type
422Invalid request parameters
429Rate limit exceeded
500Server-side failure
504Timeout waiting for liteserver
542Liteserver-specific error or unsupported stack type

By task

Sending transactions

Endpoint: /api/v2/sendBoc, /api/v2/sendBocReturnHash
StatusErrorFix
422empty bocInclude a non-empty boc field in request body
429Ratelimit exceededBack off and retry
500Exit code <N> != 0Transaction simulation failed, check the BoC
504LITE_SERVER_NETWORK timeout...Liteserver didn’t respond in time, retry

Querying transactions

Endpoints: /api/v2/getTransactions, /api/v2/tryLocateTx, /api/v2/tryLocateResultTx, /api/v2/tryLocateSourceTx
StatusErrorFix
404transaction not foundNo matching transaction exists for that source/destination/lt
422failed to parse addressAddress format is invalid
422failed to parse hashHash format is invalid
422failed to parse lt / failed to parse created_ltNot a valid 64-bit integer
422lt should be non-negative / created_lt should be non-negativeValue can’t be negative
422lt and hash should be used togetherProvide both or neither
422empty source address / empty destination addressRequired parameter is missing
422limit should be positiveMust be ≥ 1
422limit should be less or equal 1000Max is 1000

Querying addresses & balances

Endpoint: /api/v2/getAddressBalance
StatusErrorFix
422empty addressInclude the address parameter
422failed to parse seqnoNot a valid integer
422seqno should be positiveMust be ≥ 1

Querying blocks

Endpoints: /api/v2/getBlockHeader, /api/v2/getBlockTransactionsExt, /api/v2/getShardBlockProof, /api/v2/lookupBlock
StatusErrorFix
422workchain requiredInclude workchain parameter
422shard requiredInclude shard parameter
422seqno requiredInclude seqno parameter
422failed to parse workchainNot a valid integer
422failed to parse shardNot a valid shard identifier
422failed to parse root_hashNot a valid 256-bit hash
422failed to parse seqnoNot a valid integer
422seqno should be positiveMust be ≥ 1
422from_seqno should be non-negativeCan’t be negative
422exactly one of seqno, lt, unixtime should be specifiedProvide exactly one selector
422lt should be non-negative / unixtime should be non-negativeCan’t be negative
422after_lt and after_hash should be used togetherProvide both or neither
422after_lt should be non-negativeCan’t be negative
422count should be positiveMust be ≥ 1
422count should be less or equal 10000Max is 10,000

Running get methods

Endpoints: /api/v2/runGetMethod, /api/v2/runGetMethodStd

Request validation (422)

ErrorFix
Stack should be array / Invalid stack format: array expectedstack must be a JSON array
Invalid stack entry format: array of exact 2 elements expectedEach entry needs [type, value]
Invalid stack entry format: invalid type <type>Use valid types: num, cell, slice, etc.
Invalid stack entry format: base64 string expectedCell/slice values must be base64
Invalid tvm.Cell, base64 string expected / Invalid tvm.Slice, base64 string expectedUse base64 encoding
Invalid cell, object with field bytes expected / Invalid slice, object with field bytes expectedObject must have bytes field
Empty tvm.Cell / Empty tvm.Slice / Empty cell / Empty sliceValue can’t be empty
Invalid tvm.List, valid tvm_stackEntryList expectedMalformed list entry
Invalid tvm.Tuple, valid tvm_stackEntryTuple expectedMalformed tuple entry
Expected string as first element in stack entryFirst element must be type tag string
Wrong type of number in stack entryNumber format is wrong

Execution errors (500)

ErrorMeaning
Exit code <N> != 0Get method returned non-zero exit code
Stack size <N> < 5Contract returned fewer values than expected
Failed to parse int: <value>Couldn’t parse numeric result
stackEntryNumber expected / stackEntryNumber expected at 0 positionExpected number, got something else
stackEntryCell expected at <N> positionExpected cell at that stack position
stackEntryCell or stackEntrySlice expectedExpected cell or slice, got something else
addr_ext is not supported / addr_var is not supported / anycast is not supportedAddress type not supported by converter

Unsupported types (542)

ErrorMeaning
Unsupported stack entry type: <type>Server can’t decode this stack type

Estimating fees

Endpoint: /api/v2/estimateFee Same stack/cell/slice validation as get methods (422), plus:
StatusErrorMeaning
500Exit code <N> != 0Simulation failed
500addr_ext is not supported / addr_var is not supported / anycast is not supportedUnsupported address type

Token & NFT data

Endpoint: /api/v2/getTokenData
StatusErrorMeaning
409Smart contract <address> is not Jetton or NFTContract doesn’t implement Jetton/NFT interface
500Failed to unpack token dataCouldn’t decode metadata cell
500Invalid uri / missing uri field in offchain dataMetadata URI is missing or malformed
500failed to serialize TokenDataInternal serialization error
500Exit code <N> != 0Get method failed
500Stack size <N> < 5Not enough return values

Config parameters

Endpoint: /api/v2/getConfigParam
StatusErrorFix
422failed to parse config_id / failed to parse paramNot a valid integer
422only one of config_id or param should be specifiedUse one or the other, not both
422param should be non-negativeCan’t be negative

Libraries

Endpoint: /api/v2/getLibraries
StatusErrorFix
422failed to parse librariesMust be a valid JSON array of library IDs

JSON-RPC

Endpoint: /api/v2/jsonRPC
StatusErrorFix
422params must contain an objectparams must be a single JSON object, not an array