# Problem with CreateTokenAccounts

**URL:** <https://forum.flow.com/t/problem-with-createtokenaccounts/555>\
**Category:** ⚙️ Flow SDKs\
**Created:** [August 14, 2020, 1:25pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555 "2020-08-14T13:25:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [August 14, 2020, 1:25pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555/1 "2020-08-14T13:25:08Z")

</div>

Hi, I was following the market place workshop by @daniel and getting following error when running `wallet.go`

```auto
                },

~/.../tmp/marketplace-workshop (master)$go run wallet.go 
panic: client: rpc error: code = Unimplemented desc = unknown service flow.access.AccessAPI

goroutine 1 [running]:
main.CreateAccount(0x1809243, 0xe, 0x0, 0x0, 0xc000178840, 0x40, 0xc000123f20, 0xa, 0xc000123f18, 0x8, ...)
	/Users/makoto/work/tmp/marketplace-workshop/wallet.go:96 +0x857
main.CreateTokenAccounts()
	/Users/makoto/work/tmp/marketplace-workshop/wallet.go:137 +0x13c
main.main()
	/Users/makoto/work/tmp/marketplace-workshop/wallet.go:270 +0x20
exit status 2

```

Has anyone encountered the same issue?

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [August 14, 2020, 1:26pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555/2 "2020-08-14T13:26:04Z")

</div>

To follow up, I pull the latest commit where he updated service address and also I created keys and added them into `account.json`

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [August 14, 2020, 1:45pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555/3 "2020-08-14T13:45:26Z")

</div>

Looks like the problem is happening at the below line when the service Address `f8d6e0586b0a20c7` is passed.

```auto
erviceAccount, err := c.GetAccountAtLatestBlock(ctx, serviceAddress)

```

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [August 14, 2020, 2:02pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555/4 "2020-08-14T14:02:49Z")

</div>

I also called `c.GetLatestBlockHeader(ctx, true)` but getting the same error. I wonder if something wrong with the version number.

My node and flow versions are as follows.

```auto
$flow version
Version: v0.9.0
Commit: a286d775fc3e38ca2fd9eb58a8275bb6e2067e14

$node --version
v12.2.0

```

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/daniel/32/77_2.png) [@daniel](https://forum.flow.com/u/daniel)\
**Post date:** [August 14, 2020, 2:13pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555/5 "2020-08-14T14:13:06Z")

</div>

Hi @makoto,  
I wrote the code on v0.8.0.  
The API might have changed on v0.9.0, I’ll check a bit later and update if needed.

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [August 14, 2020, 2:33pm UTC](https://forum.flow.com/t/problem-with-createtokenaccounts/555/6 "2020-08-14T14:33:43Z")

</div>

What is `yarn` equivalent in go? When I first tried I got lots of message that packages are not installed so I had to do lots of ` go get -u` but not sure if that was the right way to do.

```auto
  517 go get -u github.com/golang/protobuf/ptypes
  519 go get -u github.com/onflow/flow/protobuf/go/flow/access
  520 go get -u github.com/onflow/flow/protobuf/go/flow/entities
  521 go get -u google.golang.org/grpc
  522 go get -u google.golang.org/grpc/status

```
