Skip to content

Transactions Query Language

adm get transactions <query> accepts URL-style transaction query fragments and forwards them to ADAMANT Node through adamant-api.

sh
adm get transactions senderId=U123456789
adm get transactions recipientId=U123456789,limit=10
adm get transactions 'types=0&orderBy=timestamp:desc&returnUnconfirmed=1'

Use , or & to combine query parameters. Console uses adamant-api v3 transaction-query semantics: top-level transaction filters are combined with AND by default. Prefix filters with or: only when you need an OR group. The and: prefix is still accepted for compatibility, but it is no longer required for normal multi-filter queries.

sh
adm get transactions 'senderId=U123456789,recipientId=U987654321'
adm get transactions 'or:senderId=U123456789,or:recipientId=U987654321'

Common options such as limit, offset, orderBy, returnUnconfirmed, returnAsset, includeDirectTransfers, and userId are passed as request options, not logical filters.

Transaction Filters

ParameterPurpose
blockIdMatch transactions in a block
fromHeightMatch transactions from a starting block height
toHeightMatch transactions up to an ending block height
minAmountMatch transactions whose amount is not less than the value
maxAmountMatch transactions whose amount is not greater than the value
senderIdMatch transactions sent by an ADAMANT address
recipientIdMatch transactions sent to an ADAMANT address
inIdMatch transactions where the address is sender or recipient
typeMatch one transaction type
typesMatch one or more transaction types when supported by the node API
returnUnconfirmedInclude unconfirmed transaction data when supported by the node API

Amounts are integer ADM atoms. 1 ADM equals 100000000.

Transaction type 0 is a token transfer. Transaction type 8 is a chat message or in-chat transfer. For protocol-level type definitions, see AIP-10 transaction types.

Block Filters

adm get blocks <query> accepts block query parameters:

ParameterPurpose
blockIdMatch a block by ID
generatorPublicKeyMatch blocks forged by a delegate public key
heightMatch a block by height
limitLimit the number of returned records
offsetSkip records before returning results
orderBySort by a field, for example height:desc

Common Options

OptionPurpose
limitLimit returned record count
offsetSkip records before returning results
orderBySort by a field and direction, for example timestamp:desc

Examples

Transactions involving one address, ordered newest first:

sh
adm get transactions 'inId=U123456789,minAmount=1,orderBy=timestamp:desc'

Last token transfer involving one address:

sh
adm get transactions 'inId=U123456789,type=0,limit=1,orderBy=timestamp:desc'

Transactions in a block sent to a specific recipient:

sh
adm get transactions 'blockId=7917597195203393333,recipientId=U123456789,orderBy=timestamp:asc'

The compatibility form with and:recipientId is also accepted and is converted before calling adamant-api.

Last 100 transactions sent to one recipient:

sh
adm get transactions 'recipientId=U123456789,orderBy=timestamp:desc,limit=100'

Released under the GPL-3.0 License.