Skip to main content
Version: 1.x

Types

These field tables mirror the types: section of docs/api.yaml. Optional fields are marked in the presence column.

channel​

Represents an on-chain channel.

FieldTypePresenceDescription
channel_idstringrequiredUnique identifier for the channel.
user_walletstringrequiredUser wallet address.
typestringrequiredType of the channel: home or escrow.
blockchain_idstringrequiredUnique identifier for the blockchain.
token_addressstringrequiredAddress of the token used in the channel.
challenge_durationintegerrequiredChallenge period for the channel in seconds.
challenge_expires_atstringoptionalChallenge expiration timestamp in Unix seconds.
noncestringrequiredNonce for the channel.
statusstringrequiredCurrent status: void, open, challenged, or closed.
state_versionstringrequiredOn-chain state version of the channel.

transition_type​

Type of state transition. Values: transfer_receive, transfer_send, release, commit, home_deposit, home_withdrawal, mutual_lock, escrow_deposit, escrow_lock, escrow_withdraw, migrate, finalize.

transition​

Represents a state transition.

FieldTypePresenceDescription
typetransition_typerequiredType of state transition.
tx_idstringrequiredTransaction ID associated with the transition.
account_idstringrequiredAccount identifier, varying by transition type.
amountstringrequiredAmount involved in the transition.

state​

Represents the current state of the user stored on Node.

FieldTypePresenceDescription
idstringrequiredDeterministic ID hash of the state.
transitiontransitionrequiredState transition that led to this state.
assetstringrequiredAsset type of the state.
user_walletstringrequiredUser wallet address.
epochstringrequiredUser epoch index.
versionstringrequiredVersion of the state.
home_channel_idstringoptionalIdentifier for the home channel.
escrow_channel_idstringoptionalIdentifier for the escrow channel.
home_ledgerledgerrequiredUser and node balances for the home channel.
escrow_ledgerledgeroptionalUser and node balances for the escrow channel.
user_sigstringoptionalUser signature for the state.
node_sigstringoptionalNode signature for the state.

ledger​

Represents ledger balances.

FieldTypePresenceDescription
token_addressstringrequiredAddress of the token used in this channel.
blockchain_idstringrequiredUnique identifier for the blockchain.
user_balancestringrequiredUser balance in the channel.
user_net_flowstringrequiredUser net flow in the channel.
node_balancestringrequiredNode balance in the channel.
node_net_flowstringrequiredNode net flow in the channel.

channel_definition​

Configuration for creating a channel.

FieldTypePresenceDescription
noncestringrequiredUnique number to prevent replay attacks.
challengeintegerrequiredChallenge period for the channel in seconds.

app_participant​

FieldTypePresenceDescription
wallet_addressstringrequiredParticipant wallet address.
signature_weightintegerrequiredSignature weight for the participant.

app_definition​

FieldTypePresenceDescription
application_idstringrequiredApplication identifier from an app registry.
participantsarray<app_participant>requiredList of participants in the app session.
quorumintegerrequiredQuorum required for the app session.
noncestringrequiredUnique number to prevent replay attacks.

app_allocation​

FieldTypePresenceDescription
participantstringrequiredParticipant wallet address.
assetstringrequiredAsset symbol.
amountstringrequiredAmount allocated to the participant.

app_state_update​

FieldTypePresenceDescription
app_session_idstringrequiredUnique application session identifier.
intentstringrequiredUpdate intent: operate, deposit, withdraw, close, or rebalance.
versionstringrequiredVersion of the app state.
allocationsarray<app_allocation>requiredAllocations in the app state.
session_datastringrequiredJSON stringified session data.

signed_app_state_update​

FieldTypePresenceDescription
app_state_updateapp_state_updaterequiredApplication session state update.
quorum_sigsarray<string>requiredSignature quorum for the application session.

token​

FieldTypePresenceDescription
namestringrequiredToken name.
symbolstringrequiredToken symbol.
addressstringrequiredToken contract address.
blockchain_idstringrequiredBlockchain network ID.
decimalsintegerrequiredNumber of decimal places.

asset​

FieldTypePresenceDescription
namestringrequiredAsset name.
symbolstringrequiredAsset symbol.
decimalsintegerrequiredAsset decimal places.
suggested_blockchain_idstringrequiredSuggested blockchain network ID for this asset.
tokensarray<token>requiredSupported tokens for the asset.

blockchain_info​

FieldTypePresenceDescription
namestringrequiredBlockchain name.
blockchain_idstringrequiredBlockchain network ID.
contract_addressstringrequiredMain contract address on this blockchain.

balance_entry​

FieldTypePresenceDescription
assetstringrequiredAsset symbol.
amountstringrequiredBalance amount.
enforcedstringrequiredOn-chain enforced balance.

transaction_type​

Type of transaction. Values: transfer, release, commit, home_deposit, home_withdrawal, mutual_lock, escrow_deposit, escrow_lock, escrow_withdraw, migrate, rebalance, finalize.

transaction​

FieldTypePresenceDescription
idstringrequiredUnique transaction reference.
assetstringrequiredAsset symbol.
tx_typetransaction_typerequiredTransaction type.
from_accountstringrequiredAccount that sent the funds.
to_accountstringrequiredAccount that received the funds.
sender_new_state_idstringoptionalID of the sender's new channel state.
receiver_new_state_idstringoptionalID of the receiver's new channel state.
amountstringrequiredTransaction amount.
created_atstringrequiredCreation timestamp.

app_session_info​

FieldTypePresenceDescription
app_session_idstringrequiredUnique application session identifier.
statusstringrequiredSession status: open or closed.
app_definitionapp_definitionrequiredApplication definition for this session.
session_datastringoptionalJSON stringified session data.
versionstringrequiredCurrent version of the session state.
allocationsarray<app_allocation>requiredAllocations in the app state.

channel_session_key_state​

FieldTypePresenceDescription
user_addressstringrequiredUser wallet address.
session_keystringrequiredSession key address for delegation.
versionstringrequiredSession key format version.
assetsarray<string>requiredAssets associated with this session key.
expires_atstringrequiredUnix timestamp in seconds when the key expires.
user_sigstringrequiredUser signature authorizing the registration or update.

app_session_key_state​

FieldTypePresenceDescription
user_addressstringrequiredUser wallet address.
session_keystringrequiredSession key address for delegation.
versionstringrequiredSession key format version.
application_idarray<string>requiredApplication IDs associated with this session key.
app_session_idarray<string>requiredApp-session IDs associated with this session key.
expires_atstringrequiredUnix timestamp in seconds when the key expires.
user_sigstringrequiredUser signature authorizing the registration or update.

app​

FieldTypePresenceDescription
idstringrequiredApplication identifier.
owner_walletstringrequiredOwner wallet address.
metadatastringrequiredApplication metadata bytes32 hash.
versionstringrequiredCurrent application version.
creation_approval_not_requiredbooleanrequiredWhether app sessions can be created without owner approval.

app_info​

FieldTypePresenceDescription
idstringrequiredApplication identifier.
owner_walletstringrequiredOwner wallet address.
metadatastringrequiredApplication metadata bytes32 hash.
versionstringrequiredCurrent application version.
creation_approval_not_requiredbooleanrequiredWhether app sessions can be created without owner approval.
created_atstringrequiredCreation timestamp in Unix seconds.
updated_atstringrequiredLast update timestamp in Unix seconds.

action_allowance​

FieldTypePresenceDescription
gated_actionstringrequiredGated action: transfer, app_session_deposit, app_session_operation, or app_session_withdrawal.
time_windowstringrequiredTime window for the allowance, for example 24h0m0s.
allowancestringrequiredTotal allowance within the window.
usedstringrequiredAmount already used within the window.

pagination_params​

FieldTypePresenceDescription
offsetintegeroptionalNumber of items to skip.
limitintegeroptionalNumber of items to return.
sortstringoptionalSort order: asc or desc.

pagination_metadata​

FieldTypePresenceDescription
pageintegerrequiredCurrent page number.
per_pageintegerrequiredNumber of items per page.
total_countintegerrequiredTotal number of items.
page_countintegerrequiredTotal number of pages.