Problem for opening a state channel

I’m testing the example of the state channel found in the documentation:

but at the time of executing it I get the following error …

I’m running a node with docker, but I realize that the status channel cannot be opened.

I’ve had the same error you show when Network ID didn’t match the network the network the node I was connecting to. To check the network a given node is actually running you can query: https:///v2/status -> should return a json with : network_id: “ae_…” . This is what I would do when saw that error, check all versions (node, sdk, etc).

Good luck!

If it didn’t help, post which vresions of sdk are you running and which node exactly!

See ya!

The node is connecting to the test network.
sdk: 4.4.0
node: 4.0.0

I try these examples that are in the documentation:

wscat -c ‘ws: // localhost: 3014 / channel channel_reserve = 2 & host = localhost & initiator_amount = 70000000000000 & initiator_id = ak_2r9z9fw5UmPLcx6qVS3bAECZxvZqq5j9pzMve2hEgZsLoQ5nZR & lock_period = 10 & port = 13179 & protocol = json-rpc & push_amount = 1 & responder_amount = 40000000000000 & responder_id = ak_2sxBUNz66J43vrydzUocL9j9o52UwD7cf58j9G468XupB8xRdT & role = Initiator’

wscat -c ‘ws: // localhost: 3014 / channel channel_reserve = 2 & initiator_amount = 70000000000000 & initiator_id = ak_2r9z9fw5UmPLcx6qVS3bAECZxvZqq5j9pzMve2hEgZsLoQ5nZR & lock_period = 10 & port = 13179 & protocol = JSON-RPC & push_amount = 1 & responder_amount = 40000000000000 & responder_id = ak_2sxBUNz66J43vrydzUocL9j9o52UwD7cf58j9G468XupB8xRdT & role = answer’

and when I try to do it with these examples it tells me this:

Could be that I’m missing something to do?

[{"code":1011,"message":"Participant not found"}]

Make sure that initiator and responder accounts have AE tokens (i.e. their balance is greater than 0).

How can I add A Tokens to the accounts … because the testnet account has a balance but when I check it from the local node it has no balance.

If your account has a balance in the testnet and your node is connected to tesnet, you should have balance in your node too.

If you are using your node and it is not connected to the testnet or other network, you should get balance from an account which has. In case you deployed your node with aeproject you should transfer balance from one of the miner accounts listed when you start the node.