Document link: https://soroban.stellar.org/docs/getting-started/create-an-app
In section 4, Create an APP in section Generate an NPM package for the Hello World contract:
I'm running the following command:
./soroban contract bindings typescript
--network testnet
--contract-id $(cat .soroban/hello-id)
--output-dir hello-soroban-client
The error I receive is as follows:
error: jsonrpc error: ErrorObject { code: InvalidParams, message: "cannot unmarshal key value AAAABgAAAAEp0SRPKSPNVUrzu8Ivh3Hzq/ZIC+Gfnj1SmxYkYVe9lAAAABQAAAABAAAAAA== at index 0", data: None }
There is a value in hello-id CAU5CJCPFER42VKK6O54EL4HOHZ2X5SIBPQZ7HR5KKNRMJDBK66ZJYZT
I reran the command with the --very-verbose option which produced the following:
./soroban --very-verbose contract bindings typescript
--network testnet
--contract-id $(cat .soroban/hello-id)
--output-dir hello-soroban-client
2023-11-04T03:21:05.865481Z TRACE soroban_cli::commands::contract::fetch: network=Network { rpc_url: "https://soroban-testnet.stellar.org:443", network_passphrase: "Test SDF Network ; September 2015" }
2023-11-04T03:21:05.865643Z TRACE soroban_cli::rpc: uri=https://soroban-testnet.stellar.org:443/
2023-11-04T03:21:05.865676Z TRACE soroban_cli::rpc: Getting network
error: jsonrpc error: ErrorObject { code: InvalidParams, message: "cannot unmarshal key value AAAABgAAAAEp0SRPKSPNVUrzu8Ivh3Hzq/ZIC+Gfnj1SmxYkYVe9lAAAABQAAAABAAAAAA== at index 0", data: None }
I'm new to this and just following the documentation with the goal of learning. I don't mind getting in the weeds but I do need
someone to point me in the right direction. Thanks.