æternity Documentation Hub
Aeternity.comAeternity GitHub
  • æternity Hub
  • Developer Documentation
  • Aeternity Expansions
    • PULL_REQUEST_TEMPLATE
    • AEX X
    • AEXS
      • AEX 1
      • aex-10
      • AEX 11 Fungible Token Standard
      • AEX-130: æpps Metadata Format Specification
      • aex-141
      • AEX 2
      • AEX-3
      • AEX-4
      • AEX 5
      • AEX 7
      • AEX 8
      • aex-9
    • .github
      • ISSUE_TEMPLATE
        • aexpansion
  • AeMdw - Aeternity Middleware
    • Changelog
    • docs
      • AE MDW Architecture
      • AeMdw Hyperhain Setup Documentation
      • AeMdw Docker Setup Documentation
  • Æternity <> Ethereum Bridge
    • Changelog
  • aepp-cli-js
    • CHANGELOG
    • Contributor guide
    • reference
    • user-guide
    • .github
      • ISSUE_TEMPLATE
  • Hyperchain Bridge
    • Changelog
  • æternity's JavaScript SDK
    • Installation
      • Changelog
      • Compatibility Table
      • Quick Start
      • Transaction options
      • Development
        • Releases
      • guides
        • The range of possible address length
        • AENS (æternity naming system)
        • Batch Transactions
        • How to build a wallet
        • Connect an æpp to a wallet
        • Contract Events
        • Contracts
        • Error Handling
        • JWT usage
        • Ledger Hardware Wallet
        • Low vs High level API
        • Aeternity snap for MetaMask
        • Oracles
        • PayingForTx (Meta-Transactions)
        • Typed data hashing and signing
        • Usage with TypeScript
        • migration
          • Migration to 10.0.0
          • Migration to 11.0.0
          • Migration to 12.0.0
          • Migration to 13.0.0
          • Migration to 14.0.0
          • Migration to 7.0.0
          • Migration to 9.0.0
      • tutorials
        • vuejs
          • Vue.js HelloWorld
    • Examples
      • How to connect wallet to æpp using æternity's JS SDK
        • Sample æpp for contracts
        • iframe-based wallet
        • WebExtension-based wallet
    • .github
      • ISSUE_TEMPLATE
        • bug_report
        • feature_request
  • AEproject
    • Changelog
    • docs
      • Quick Start
      • AEproject Library
      • Migration from 3.x.x to 4.x.x
      • Migration from 4.x.x to 5.x.x
      • Upcoming Version Support
      • cli
        • Local Environment
        • Project Initialization
        • Unit Testing
    • .github
      • ISSUE_TEMPLATE
        • bug_report
        • feature_request
  • aerepl
    • Changelog
  • aescan
    • Changelog
    • Contributor Covenant Code of Conduct
    • Aescan Contributing Guide
    • LICENSE
    • .github
      • pull_request_template
      • ISSUE_TEMPLATE
        • bug_report
        • feature_request
    • docs
      • BRANCHING_STRATEGY
  • Sophia Support for Visual Studio Code
    • Changelog
  • aesophia
    • Changelog
    • Contributing to Sophia
    • docs
      • aeso_aci
      • aeso_compiler
      • Introduction
      • sophia
      • Contract examples
      • Features
      • Standard library
      • Syntax
  • aesophia_cli
    • Changelog
  • aesophia_http
    • Changelog
  • Æ Studio - Formerly known as 🔥 Fire Editor ! Aeternity's easy to use editor for writing smart contr
    • ideas
  • aeternity
    • .github
      • The Æternity Code of Conduct
      • Contributing to the Aeternity node
      • ISSUE_TEMPLATE
        • bug_report
        • feature_request
    • Welcome to Aeternity node documentation
      • Summary
      • Node API
      • Introduction
      • Build from source
      • Configuration
      • CUDA Miner
      • debian_ubuntu_packaging
      • Docker
      • Fork resistance in Aeternity nodes
      • Garbage Collection
      • Hacking the Aeternity Codebase
      • Hardware Requirements
      • hyperchains
      • Installation
      • Network Monitoring
      • Operation
      • Rebar Quick Guide
      • Stratum
      • Testing
      • Update
      • release-notes
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • About this release
        • next-ceres
          • GH-3706-micro_block_gas_limit_used_gas
          • GH-4009-allow_contract_call_by_name
          • GH-4056-add_raw_data_pointers_to_AENS
          • GH-4080-wildcard_aens_delegation_signature
          • GH3417-tamper_protection_on_ga_meta_tx
          • aega_only_allow_attach_for_fresh_accounts
          • aens_auction_adjustments
          • aens_preclaim_optional
          • deprecate_swagger
          • fate_extensions
        • next
          • GH-3088-db_direct_access-as-default
          • GH-4087_http_endpoint_info_inner_txs
          • GH4157-control-mempool-sync-start
    • Emergency patching of OTP modules
    • rosetta
    • apps
      • aehttp
        • priv
          • rosetta_README
    • data
      • aecore
        • Token migration contract
  • Hyperchains whitepaper
    • Hyperchains: Bridging Security and Scalability Through Periodic Synchronization
    • LICENSE
    • Periodically-Syncing-HyperChains
    • generations
    • Glossary
    • Hyperchain Properties
    • staking
  • æternity protocol
    • æternity naming system
    • Gossip
    • Stratum
    • SYNC
    • Serialization formats
    • State Channels
      • Off-chain
      • On-chain
      • Authentication
      • Channel off-chain state
    • æternity consensus protocol
      • Bitcoin-NG for æternity
      • Coinbase at height
      • consensus
      • Coins locking
    • Smart Contracts
      • The æternity Ethereum virtual machine (AEVM)
      • contract_state_tree
      • Contract Transactions
      • Virtual machines on the æternity blockchain
      • contracts
      • Events
      • fate
      • The Solidity Language
      • sophia
      • sophia_stdlib
    • Generalized accounts
      • Generalized accounts - explained
      • generalized_accounts
    • Oracles
      • Oracle life cycle examples
      • Oracle state tree
      • Oracle transactions
      • oracles
    • Sync
      • P2P messages
      • Mempool/TX-pool synchronization
    • node
      • æternity node API
        • Account management - intended usage
        • Encoding scheme for API identifiers and byte arrays
        • State channel WebSocket API
        • Channels - intended usage
        • Contracts - intended usage
        • Mining - intended usage
        • Naming System - intended usage
        • Oracles - intended usage
        • Spending coins - intended usage
        • examples
          • æternity node channel WebSocket API examples
            • json-rpc
              • sc_ws_basic_open_close
              • sc_ws_basic_open_close_server
              • sc_ws_broken_open_params
              • sc_ws_close_mutual
              • sc_ws_close_solo
              • sc_ws_leave_reconnect
              • sc_ws_leave_reestablish
              • sc_ws_leave_reestablish_responder_stays
              • sc_ws_leave_reestablish_wrong_fsm_id
              • sc_ws_min_depth_is_modifiable
              • sc_ws_min_depth_not_reached_timeout
              • sc_ws_opening_ping_pong
              • sc_ws_reconnect_early
              • sc_ws_slash
              • sc_ws_snapshot_solo
              • sc_ws_timeout_open
              • sc_ws_update_with_meta
              • abort_updates
                • sc_ws_abort_deposit
                • sc_ws_abort_offchain_update
                • sc_ws_abort_settle
                • sc_ws_abort_shutdown
                • sc_ws_abort_slash
                • sc_ws_abort_snapshot_solo
                • sc_ws_abort_withdraw
                • sc_ws_can_not_abort_while_open
              • assume_min_depth
                • sc_ws_basic_open_close
              • both_sign
                • init_per_group
                • conflicts
                  • sc_ws_conflict_deposit_and_offchain_update
                  • sc_ws_conflict_two_deposits
                  • sc_ws_conflict_two_offchain_updates
                  • sc_ws_conflict_two_withdrawals
                  • sc_ws_conflict_withdrawal_and_deposit
                  • sc_ws_conflict_withdrawal_and_offchain_update
              • changeable_fee
                • sc_ws_optional_params_close_solo
                • sc_ws_optional_params_create
                • sc_ws_optional_params_deposit
                • sc_ws_optional_params_settle
                • sc_ws_optional_params_slash
                • sc_ws_optional_params_snapshot
                • sc_ws_optional_params_withdrawal
                • sc_ws_set_fee_close_mutual
                • sc_ws_set_fee_close_solo
                • sc_ws_set_fee_create
                • sc_ws_set_fee_deposit
                • sc_ws_set_fee_settle
                • sc_ws_set_fee_slash
                • sc_ws_set_fee_snapshot
                • sc_ws_set_fee_withdrawal
              • changeable_fee_higher_than_gas_price
                • sc_ws_optional_params_close_solo
                • sc_ws_optional_params_create
                • sc_ws_optional_params_deposit
                • sc_ws_optional_params_settle
                • sc_ws_optional_params_slash
                • sc_ws_optional_params_snapshot
                • sc_ws_optional_params_withdrawal
              • changeable_fee_lower_than_gas_price
                • sc_ws_optional_params_close_solo
                • sc_ws_optional_params_create
                • sc_ws_optional_params_deposit
                • sc_ws_optional_params_settle
                • sc_ws_optional_params_slash
                • sc_ws_optional_params_snapshot
                • sc_ws_optional_params_withdrawal
              • changeable_gas_price
                • sc_ws_optional_params_close_solo
                • sc_ws_optional_params_create
                • sc_ws_optional_params_deposit
                • sc_ws_optional_params_settle
                • sc_ws_optional_params_slash
                • sc_ws_optional_params_snapshot
                • sc_ws_optional_params_withdrawal
              • changeable_nonce
                • sc_ws_optional_params_fail_close_mutual
                • sc_ws_optional_params_fail_close_solo
                • sc_ws_optional_params_fail_create
                • sc_ws_optional_params_fail_deposit
                • sc_ws_optional_params_fail_force_progress
                • sc_ws_optional_params_fail_settle
                • sc_ws_optional_params_fail_slash
                • sc_ws_optional_params_fail_snapshot
                • sc_ws_optional_params_fail_withdrawal
              • continuous
                • init_per_group
                • sc_ws_deposit
                • sc_ws_failed_update
                • sc_ws_generic_messages
                • sc_ws_ping_pong
                • sc_ws_update_conflict
                • sc_ws_withdraw
              • contracts
                • init_per_group
                • sc_ws_basic_contracts
                • sc_ws_environment_contract
                • sc_ws_nameservice_contract
                • sc_ws_oracle_contract
                • sc_ws_remote_call_contract
                • sc_ws_remote_call_contract_refering_onchain_data
                • sc_ws_wrong_call_data
              • force_progress
                • sc_ws_force_progress_based_on_offchain_state
                • sc_ws_force_progress_based_on_onchain_state
              • only_one_signs
                • init_per_group
                • sc_ws_conflict_on_new_offchain
                • sc_ws_conflict_snapshot_and_offchain_update
                • conflicts
                  • sc_ws_conflict_deposit_and_offchain_update
                  • sc_ws_conflict_two_deposits
                  • sc_ws_conflict_two_offchain_updates
                  • sc_ws_conflict_two_withdrawals
                  • sc_ws_conflict_withdrawal_and_deposit
                  • sc_ws_conflict_withdrawal_and_offchain_update
              • reconnect
                • sc_ws_basic_client_reconnect_i
                • sc_ws_basic_client_reconnect_i_w_reestablish
                • sc_ws_basic_client_reconnect_r
              • with_meta
                • init_per_group
                • sc_ws_deposit
                • sc_ws_remote_call_contract
                • sc_ws_withdraw
              • generalized_accounts
                • both
                  • sc_ws_basic_open_close
                • initiator
                  • sc_ws_basic_open_close
                • responder
                  • sc_ws_basic_open_close
  • Superhero Wallet
    • Changelog
    • Contributing & Guidelines
    • docs
      • Deep link URL Schema
    • .github
      • ISSUE_TEMPLATE
        • bug_report
        • feature_request
  • aerepl-web-bridge
    • AereplApi
    • aerepl_components
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. æternity protocol
  2. node
  3. æternity node API
  4. examples
  5. æternity node channel WebSocket API examples
  6. json-rpc
  7. generalized_accounts
  8. initiator

sc_ws_basic_open_close

initiator opens a WebSocket connection

ws://localhost:3014/channel?channel_reserve=2&host=localhost&initiator_amount=70000000000000&initiator_id=ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL&keep_running=false&lock_period=10&port=12890&protocol=json-rpc&push_amount=1&responder_amount=40000000000000&responder_id=ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo&role=initiator

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": null,
    "data": {
      "event": "fsm_up",
      "fsm_id": "ba_KUOf2iDMz+kFIYYyEicLBg0gaJ1p0ae9ByoVc3gGCUin0g0M"
    }
  },
  "version": 1
}

initiator info

The local fsm has been started

responder opens a WebSocket connection

ws://localhost:3014/channel?channel_reserve=2&initiator_amount=70000000000000&initiator_id=ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL&keep_running=false&lock_period=10&port=12890&protocol=json-rpc&push_amount=1&responder_amount=40000000000000&responder_id=ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo&role=responder

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": null,
    "data": {
      "event": "fsm_up",
      "fsm_id": "ba_jmyBFiU8hu4gVfXl0D4p+gQnYcPLJxCWfy24+fmzi0iw7SmV"
    }
  },
  "version": 1
}

responder info

The local fsm has been started

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": null,
    "data": {
      "event": "channel_open"
    }
  },
  "version": 1
}

responder info

Received an WebSocket opening request

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": null,
    "data": {
      "event": "channel_accept"
    }
  },
  "version": 1
}

initiator info

Received an WebSocket connection accepted

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.initiator_sign",
  "params": {
    "channel_id": null,
    "data": {
      "signed_tx": "tx_+IgLAcC4g/iBMgGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHhj+qJSJgAKEBNz+qJ0Z1mW15NlxLac4zJezq2R7sGk9GQ6USiTiMgN6GJGE5yoAAAgoAhhAGeddIAMCg+SJvQ23aI0LuMYbCXBo+TWjlfvGscvMXTZ4d9hX+RU8A0EClMw==",
      "updates": []
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421249,
  "jsonrpc": "2.0",
  "method": "channels.initiator_sign",
  "params": {
    "signed_tx": "tx_+NQLAcC4z/jNUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4iviICwHAuIP4gTIBoQGtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4Y/qiUiYAChATc/qidGdZlteTZcS2nOMyXs6tke7BpPRkOlEok4jIDehiRhOcqAAAIKAIYQBnnXSADAoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPAIQwZgY="
  }
}

initiator <--- node

{
  "channel_id": null,
  "id": -576460752303421249,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "funding_created",
      "fsm_id": "ba_jmyBFiU8hu4gVfXl0D4p+gQnYcPLJxCWfy24+fmzi0iw7SmV"
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.responder_sign",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+NQLAcC4z/jNUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4iviICwHAuIP4gTIBoQGtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4Y/qiUiYAChATc/qidGdZlteTZcS2nOMyXs6tke7BpPRkOlEok4jIDehiRhOcqAAAIKAIYQBnnXSADAoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPAIQwZgY=",
      "updates": []
    }
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421248,
  "jsonrpc": "2.0",
  "method": "channels.responder_sign",
  "params": {
    "signed_tx": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421248,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.on_chain_tx",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "info": "funding_created",
      "tx": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV",
      "type": "channel_create_tx"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "funding_signed",
      "fsm_id": "ba_KUOf2iDMz+kFIYYyEicLBg0gaJ1p0ae9ByoVc3gGCUin0g0M"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.on_chain_tx",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "info": "funding_signed",
      "tx": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV",
      "type": "channel_create_tx"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.on_chain_tx",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "info": "channel_changed",
      "tx": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV",
      "type": "channel_create_tx"
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.on_chain_tx",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "info": "channel_changed",
      "tx": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV",
      "type": "channel_create_tx"
    }
  },
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.message",
  "params": {
    "info": "Hello",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.message",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "message": {
        "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "info": "Hello",
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.message",
  "params": {
    "info": "Hello back",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.message",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "message": {
        "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "info": "Hello back",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421247,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421247,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999999
    },
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000001
    }
  ],
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "own_funding_locked"
    }
  },
  "version": 1
}

initiator info

Funding has been confirmed locally on-chain

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "own_funding_locked"
    }
  },
  "version": 1
}

responder info

Funding has been confirmed locally on-chain

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "funding_locked"
    }
  },
  "version": 1
}

responder info

Funding has been confirmed on-chain by other party

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "open"
    }
  },
  "version": 1
}

responder info

Channel is open and ready to use

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "funding_locked"
    }
  },
  "version": 1
}

initiator info

Funding has been confirmed on-chain by other party

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "open"
    }
  },
  "version": 1
}

initiator info

Channel is open and ready to use

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+QEZCwHAuQET+QEQUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4zfjLCwH4QrhA2if1OXiSgJOnKIXSDrqh0f0wioxrpnaxF8v22PrOptIO2uuL6acAXLtj8E0aWBjrce26HnMAkENX0rG8ADh7CbiD+IEyAaEBrW8HNLLd9X00xfrP612nqzaWGYg0xuwUOPUrY6mmI8eGP6olImAAoQE3P6onRnWZbXk2XEtpzjMl7OrZHuwaT0ZDpRKJOIyA3oYkYTnKgAACCgCGEAZ510gAwKD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FTwBeFJjV"
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421246,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421246,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999999
    },
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000001
    }
  ],
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": "1",
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1008,
        "message": "Not a number"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": "1",
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ABCDEF",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ABCDEF",
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "to": "ABCDEF"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "to": "ABCDEF"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "meta": 17,
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1014,
        "message": "Invalid meta object"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "meta": 17,
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+E0LAcC4SPhGOQKhBmPLcXVhRxIPGtnMwhEr+pi1L4e1MGwp4Scr8klGTcVbAqBt0h0wyCx37Fz8JMZIcEh+dfSASY38wdMBT4Rzfe6f8xD5n2g=",
      "updates": [
        {
          "amount": 1,
          "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
          "op": "OffChainTransfer",
          "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
        }
      ]
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421245,
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "signed_tx": "tx_+JkLAcC4lPiSUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4T/hNCwHAuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwKgbdIdMMgsd+xc/CTGSHBIfnX0gEmN/MHTAU+Ec33un/NCmeSK"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421245,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "update"
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update_ack",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+JkLAcC4lPiSUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4T/hNCwHAuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwKgbdIdMMgsd+xc/CTGSHBIfnX0gEmN/MHTAU+Ec33un/NCmeSK",
      "updates": [
        {
          "amount": 1,
          "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
          "op": "OffChainTransfer",
          "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
        }
      ]
    }
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421244,
  "jsonrpc": "2.0",
  "method": "channels.update_ack",
  "params": {
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAE4O/WWeZvEoKi2aMxYmfX7/xr9cyrKXImjZjJWiGJJqNmSHisHWk2Zu9Gz5aK5k0rK0+sP01fB81tBuDHG4+BrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsCoG3SHTDILHfsXPwkxkhwSH519IBJjfzB0wFPhHN97p/zjA9MNQ=="
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421244,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAE4O/WWeZvEoKi2aMxYmfX7/xr9cyrKXImjZjJWiGJJqNmSHisHWk2Zu9Gz5aK5k0rK0+sP01fB81tBuDHG4+BrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsCoG3SHTDILHfsXPwkxkhwSH519IBJjfzB0wFPhHN97p/zjA9MNQ=="
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAE4O/WWeZvEoKi2aMxYmfX7/xr9cyrKXImjZjJWiGJJqNmSHisHWk2Zu9Gz5aK5k0rK0+sP01fB81tBuDHG4+BrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsCoG3SHTDILHfsXPwkxkhwSH519IBJjfzB0wFPhHN97p/zjA9MNQ=="
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421243,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421243,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999998
    },
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000002
    }
  ],
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421242,
  "jsonrpc": "2.0",
  "method": "channels.get.offchain_state",
  "params": {}
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421242,
  "jsonrpc": "2.0",
  "result": {
    "calls": "cs_yYICbgGEwz8BwHtqgWY=",
    "half_signed_tx": "",
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAE4O/WWeZvEoKi2aMxYmfX7/xr9cyrKXImjZjJWiGJJqNmSHisHWk2Zu9Gz5aK5k0rK0+sP01fB81tBuDHG4+BrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsCoG3SHTDILHfsXPwkxkhwSH519IBJjfzB0wFPhHN97p/zjA9MNQ==",
    "trees": "ss_+Ks+AIrJggJtAYTDPwHAismCAm4BhMM/AcCKyYICbwGEwz8BwIrJggJwAYTDPwHAismCAnEBhMM/AcC4cPhuggJyAbho+GY/AfhisO9AAaCtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4vKCgEAhj+qJSJf/rDvQAGgNz+qJ0Z1mW15NlxLac4zJezq2R7sGk9GQ6USiTiMgN6LygoBAIYkYTnKgAK8THEE"
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421241,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421241,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000002
    },
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999998
    }
  ],
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": "1",
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1008,
        "message": "Not a number"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": "1",
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ABCDEF",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ABCDEF",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ABCDEF"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "to": "ABCDEF"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "meta": 17,
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1014,
        "message": "Invalid meta object"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "meta": 17,
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+E0LAcC4SPhGOQKhBmPLcXVhRxIPGtnMwhEr+pi1L4e1MGwp4Scr8klGTcVbA6D5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FT38wenE=",
      "updates": [
        {
          "amount": 1,
          "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
          "op": "OffChainTransfer",
          "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
        }
      ]
    }
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421240,
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "signed_tx": "tx_+JALAfhCuEBcyMBH5bvOYabVlA5KbOV0JGp8lCi1wTGdXj0cTr66rRhjPf/vmubMhjlTr7fkgi54O8eDQS8BUFi38PN1/K8AuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwOg+SJvQ23aI0LuMYbCXBo+TWjlfvGscvMXTZ4d9hX+RU+JHjqE"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421240,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "update"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update_ack",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+JALAfhCuEBcyMBH5bvOYabVlA5KbOV0JGp8lCi1wTGdXj0cTr66rRhjPf/vmubMhjlTr7fkgi54O8eDQS8BUFi38PN1/K8AuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwOg+SJvQ23aI0LuMYbCXBo+TWjlfvGscvMXTZ4d9hX+RU+JHjqE",
      "updates": [
        {
          "amount": 1,
          "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
          "op": "OffChainTransfer",
          "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
        }
      ]
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421239,
  "jsonrpc": "2.0",
  "method": "channels.update_ack",
  "params": {
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAXMjAR+W7zmGm1ZQOSmzldCRqfJQotcExnV49HE6+uq0YYz3/75rmzIY5U6+35IIueDvHg0EvAVBYt/DzdfyvALhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsDoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPVZcFLw=="
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421239,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAXMjAR+W7zmGm1ZQOSmzldCRqfJQotcExnV49HE6+uq0YYz3/75rmzIY5U6+35IIueDvHg0EvAVBYt/DzdfyvALhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsDoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPVZcFLw=="
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAXMjAR+W7zmGm1ZQOSmzldCRqfJQotcExnV49HE6+uq0YYz3/75rmzIY5U6+35IIueDvHg0EvAVBYt/DzdfyvALhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsDoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPVZcFLw=="
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421238,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421238,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000001
    },
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999999
    }
  ],
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421237,
  "jsonrpc": "2.0",
  "method": "channels.get.offchain_state",
  "params": {}
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421237,
  "jsonrpc": "2.0",
  "result": {
    "calls": "cs_yYICbgGEwz8BwHtqgWY=",
    "half_signed_tx": "",
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAXMjAR+W7zmGm1ZQOSmzldCRqfJQotcExnV49HE6+uq0YYz3/75rmzIY5U6+35IIueDvHg0EvAVBYt/DzdfyvALhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsDoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPVZcFLw==",
    "trees": "ss_+Ks+AIrJggJtAYTDPwHAismCAm4BhMM/AcCKyYICbwGEwz8BwIrJggJwAYTDPwHAismCAnEBhMM/AcC4cPhuggJyAbho+GY/AfhisO9AAaCtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4vKCgEAhj+qJSJf/7DvQAGgNz+qJ0Z1mW15NlxLac4zJezq2R7sGk9GQ6USiTiMgN6LygoBAIYkYTnKgAHFwWTK"
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421236,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421236,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000001
    },
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999999
    }
  ],
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": "1",
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1008,
        "message": "Not a number"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": "1",
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ABCDEF",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ABCDEF",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ABCDEF"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "to": "ABCDEF"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "meta": 17,
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1014,
        "message": "Invalid meta object"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "meta": 17,
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+E0LAcC4SPhGOQKhBmPLcXVhRxIPGtnMwhEr+pi1L4e1MGwp4Scr8klGTcVbBKCS5Z88trBzDDYG6DRBRphCwHlXN7eKWuW/6WiVGmYJ5cugeJE=",
      "updates": [
        {
          "amount": 1,
          "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
          "op": "OffChainTransfer",
          "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
        }
      ]
    }
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421235,
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "signed_tx": "tx_+JALAfhCuEDaGQs8J6AzuiCUMMoRGs1md+h0ilo2yLzR0VLpyWv9yAs75KtuJqFraFRlNzOrKEL0QiOBa+D1C+o3Kvd5B08GuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwSgkuWfPLawcww2Bug0QUaYQsB5Vze3ilrlv+lolRpmCeWF3hRW"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421235,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "update"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update_ack",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+JALAfhCuEDaGQs8J6AzuiCUMMoRGs1md+h0ilo2yLzR0VLpyWv9yAs75KtuJqFraFRlNzOrKEL0QiOBa+D1C+o3Kvd5B08GuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwSgkuWfPLawcww2Bug0QUaYQsB5Vze3ilrlv+lolRpmCeWF3hRW",
      "updates": [
        {
          "amount": 1,
          "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
          "op": "OffChainTransfer",
          "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
        }
      ]
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421234,
  "jsonrpc": "2.0",
  "method": "channels.update_ack",
  "params": {
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhA2hkLPCegM7oglDDKERrNZnfodIpaNsi80dFS6clr/cgLO+Srbiaha2hUZTczqyhC9EIjgWvg9QvqNyr3eQdPBrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsEoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlIFiTpQ=="
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421234,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhA2hkLPCegM7oglDDKERrNZnfodIpaNsi80dFS6clr/cgLO+Srbiaha2hUZTczqyhC9EIjgWvg9QvqNyr3eQdPBrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsEoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlIFiTpQ=="
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhA2hkLPCegM7oglDDKERrNZnfodIpaNsi80dFS6clr/cgLO+Srbiaha2hUZTczqyhC9EIjgWvg9QvqNyr3eQdPBrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsEoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlIFiTpQ=="
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421233,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421233,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000000
    },
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 70000000000000
    }
  ],
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421232,
  "jsonrpc": "2.0",
  "method": "channels.get.offchain_state",
  "params": {}
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421232,
  "jsonrpc": "2.0",
  "result": {
    "calls": "cs_yYICbgGEwz8BwHtqgWY=",
    "half_signed_tx": "",
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhA2hkLPCegM7oglDDKERrNZnfodIpaNsi80dFS6clr/cgLO+Srbiaha2hUZTczqyhC9EIjgWvg9QvqNyr3eQdPBrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsEoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlIFiTpQ==",
    "trees": "ss_+Ks+AIrJggJtAYTDPwHAismCAm4BhMM/AcCKyYICbwGEwz8BwIrJggJwAYTDPwHAismCAnEBhMM/AcC4cPhuggJyAbho+GY/AfhisO9AAaCtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4vKCgEAhj+qJSJgALDvQAGgNz+qJ0Z1mW15NlxLac4zJezq2R7sGk9GQ6USiTiMgN6LygoBAIYkYTnKgAC/jN5k"
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421231,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421231,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 70000000000000
    },
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000000
    }
  ],
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": "1",
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1008,
        "message": "Not a number"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": "1",
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ABCDEF",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ABCDEF",
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "to": "ABCDEF"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "to": "ABCDEF"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "meta": 17,
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1014,
        "message": "Invalid meta object"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
        "meta": 17,
        "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

initiator ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
    "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
  }
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+E0LAcC4SPhGOQKhBmPLcXVhRxIPGtnMwhEr+pi1L4e1MGwp4Scr8klGTcVbBaD5Im9DbdojQu4xhsJcGj5NaOV+8axy8xdNnh32Ff5FT6GHk2E=",
      "updates": [
        {
          "amount": 1,
          "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
          "op": "OffChainTransfer",
          "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
        }
      ]
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421230,
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "signed_tx": "tx_+JkLAcC4lPiSUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4T/hNCwHAuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwWg+SJvQ23aI0LuMYbCXBo+TWjlfvGscvMXTZ4d9hX+RU9iUIA3"
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421230,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "update"
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update_ack",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+JkLAcC4lPiSUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4T/hNCwHAuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwWg+SJvQ23aI0LuMYbCXBo+TWjlfvGscvMXTZ4d9hX+RU9iUIA3",
      "updates": [
        {
          "amount": 1,
          "from": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
          "op": "OffChainTransfer",
          "to": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
        }
      ]
    }
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421229,
  "jsonrpc": "2.0",
  "method": "channels.update_ack",
  "params": {
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAJHajxyvn5acKgi1B/oI/ipW619wT2F1OHgj+ZJBW25Am8jMLpo+IccbVUPiqifBq3w6e8AtA5bhuUrVJod0wDLhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsFoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPT2NLYw=="
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421229,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAJHajxyvn5acKgi1B/oI/ipW619wT2F1OHgj+ZJBW25Am8jMLpo+IccbVUPiqifBq3w6e8AtA5bhuUrVJod0wDLhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsFoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPT2NLYw=="
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAJHajxyvn5acKgi1B/oI/ipW619wT2F1OHgj+ZJBW25Am8jMLpo+IccbVUPiqifBq3w6e8AtA5bhuUrVJod0wDLhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsFoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPT2NLYw=="
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421228,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421228,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999999
    },
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000001
    }
  ],
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421227,
  "jsonrpc": "2.0",
  "method": "channels.get.offchain_state",
  "params": {}
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421227,
  "jsonrpc": "2.0",
  "result": {
    "calls": "cs_yYICbgGEwz8BwHtqgWY=",
    "half_signed_tx": "",
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAJHajxyvn5acKgi1B/oI/ipW619wT2F1OHgj+ZJBW25Am8jMLpo+IccbVUPiqifBq3w6e8AtA5bhuUrVJod0wDLhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsFoPkib0Nt2iNC7jGGwlwaPk1o5X7xrHLzF02eHfYV/kVPT2NLYw==",
    "trees": "ss_+Ks+AIrJggJtAYTDPwHAismCAm4BhMM/AcCKyYICbwGEwz8BwIrJggJwAYTDPwHAismCAnEBhMM/AcC4cPhuggJyAbho+GY/AfhisO9AAaCtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4vKCgEAhj+qJSJf/7DvQAGgNz+qJ0Z1mW15NlxLac4zJezq2R7sGk9GQ6USiTiMgN6LygoBAIYkYTnKgAHFwWTK"
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421226,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421226,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000001
    },
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 69999999999999
    }
  ],
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": "1",
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1008,
        "message": "Not a number"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": "1",
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ABCDEF",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ABCDEF",
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ABCDEF"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1005,
        "message": "Broken encoding: account pubkey"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "to": "ABCDEF"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "meta": 17,
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "error": {
    "code": 3,
    "data": [
      {
        "code": 1014,
        "message": "Invalid meta object"
      }
    ],
    "message": "Rejected",
    "request": {
      "jsonrpc": "2.0",
      "method": "channels.update.new",
      "params": {
        "amount": 1,
        "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
        "meta": 17,
        "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
      }
    }
  },
  "id": null,
  "jsonrpc": "2.0",
  "version": 1
}

responder ---> node

{
  "jsonrpc": "2.0",
  "method": "channels.update.new",
  "params": {
    "amount": 1,
    "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
    "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
  }
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+E0LAcC4SPhGOQKhBmPLcXVhRxIPGtnMwhEr+pi1L4e1MGwp4Scr8klGTcVbBqCS5Z88trBzDDYG6DRBRphCwHlXN7eKWuW/6WiVGmYJ5fikS2k=",
      "updates": [
        {
          "amount": 1,
          "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
          "op": "OffChainTransfer",
          "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
        }
      ]
    }
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421225,
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "signed_tx": "tx_+JALAfhCuECnQqUl8unUwozDNWOOqhC9NlucHsaOcKPPY/fxYh2Bbsd1Uo0tLaweRmv+YT0a/G4MPrgYzTGMzoC7JO/Nz38KuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwagkuWfPLawcww2Bug0QUaYQsB5Vze3ilrlv+lolRpmCeU/alhC"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421225,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "update"
    }
  },
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.sign.update_ack",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "signed_tx": "tx_+JALAfhCuECnQqUl8unUwozDNWOOqhC9NlucHsaOcKPPY/fxYh2Bbsd1Uo0tLaweRmv+YT0a/G4MPrgYzTGMzoC7JO/Nz38KuEj4RjkCoQZjy3F1YUcSDxrZzMIRK/qYtS+HtTBsKeEnK/JJRk3FWwagkuWfPLawcww2Bug0QUaYQsB5Vze3ilrlv+lolRpmCeU/alhC",
      "updates": [
        {
          "amount": 1,
          "from": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
          "op": "OffChainTransfer",
          "to": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
        }
      ]
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421224,
  "jsonrpc": "2.0",
  "method": "channels.update_ack",
  "params": {
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAp0KlJfLp1MKMwzVjjqoQvTZbnB7GjnCjz2P38WIdgW7HdVKNLS2sHkZr/mE9GvxuDD64GM0xjM6AuyTvzc9/CrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsGoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlR0XupQ=="
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421224,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAp0KlJfLp1MKMwzVjjqoQvTZbnB7GjnCjz2P38WIdgW7HdVKNLS2sHkZr/mE9GvxuDD64GM0xjM6AuyTvzc9/CrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsGoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlR0XupQ=="
    }
  },
  "version": 1
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.update",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "state": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAp0KlJfLp1MKMwzVjjqoQvTZbnB7GjnCjz2P38WIdgW7HdVKNLS2sHkZr/mE9GvxuDD64GM0xjM6AuyTvzc9/CrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsGoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlR0XupQ=="
    }
  },
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421223,
  "jsonrpc": "2.0",
  "method": "channels.get.balances",
  "params": {
    "accounts": [
      "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL"
    ]
  }
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421223,
  "jsonrpc": "2.0",
  "result": [
    {
      "account": "ak_RLFiEZ2Cq165ftSppQwVJ5jCQRBXjY31yPDLRB9WEK8v2qNQo",
      "balance": 40000000000000
    },
    {
      "account": "ak_2KP8cKSPR1Zt6BP3PtdfKqmYGArvp9RDdPz7xdjf6DRa9PNyPL",
      "balance": 70000000000000
    }
  ],
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421222,
  "jsonrpc": "2.0",
  "method": "channels.get.offchain_state",
  "params": {}
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421222,
  "jsonrpc": "2.0",
  "result": {
    "calls": "cs_yYICbgGEwz8BwHtqgWY=",
    "half_signed_tx": "",
    "signed_tx": "tx_+NwLAcC41/jVUQGhAa1vBzSy3fV9NMX6z+tdp6s2lhmINMbsFDj1K2OppiPHiSsRbPJXCytUAgOHA41+pMaAAIJOIIXo1KUQAAC4kviQCwH4QrhAp0KlJfLp1MKMwzVjjqoQvTZbnB7GjnCjz2P38WIdgW7HdVKNLS2sHkZr/mE9GvxuDD64GM0xjM6AuyTvzc9/CrhI+EY5AqEGY8txdWFHEg8a2czCESv6mLUvh7UwbCnhJyvySUZNxVsGoJLlnzy2sHMMNgboNEFGmELAeVc3t4pa5b/paJUaZgnlR0XupQ==",
    "trees": "ss_+Ks+AIrJggJtAYTDPwHAismCAm4BhMM/AcCKyYICbwGEwz8BwIrJggJwAYTDPwHAismCAnEBhMM/AcC4cPhuggJyAbho+GY/AfhisO9AAaCtbwc0st31fTTF+s/rXaerNpYZiDTG7BQ49StjqaYjx4vKCgEAhj+qJSJgALDvQAGgNz+qJ0Z1mW15NlxLac4zJezq2R7sGk9GQ6USiTiMgN6LygoBAIYkYTnKgAC/jN5k"
  },
  "version": 1
}

responder ---> node

{
  "id": -576460752303421221,
  "jsonrpc": "2.0",
  "method": "channels.system",
  "params": {
    "action": "stop"
  }
}

responder <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421221,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator ---> node

{
  "id": -576460752303421220,
  "jsonrpc": "2.0",
  "method": "channels.system",
  "params": {
    "action": "stop"
  }
}

responder <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "died"
    }
  },
  "version": 1
}

responder closes WebSocket connection

initiator <--- node

{
  "jsonrpc": "2.0",
  "method": "channels.info",
  "params": {
    "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
    "data": {
      "event": "died"
    }
  },
  "version": 1
}

initiator <--- node

{
  "channel_id": "ch_kx84JnGKFSoK2myYCxq1cJ8AmwkiY3bNPGJfRpdVnhjUFufbn",
  "id": -576460752303421220,
  "jsonrpc": "2.0",
  "result": "ok",
  "version": 1
}

initiator closes WebSocket connection

PreviousinitiatorNextresponder

Last updated 26 days ago

Was this helpful?