Using the CLI

To generate an AAT in the CLI, we will first need to create a new account.

Obtaining the App Address & Client Public Key:

In order to create the AAT, we have to obtain the:

application address: The funded applications account address
client public key: The public key of the account our dApp is connecting to

# show a list of accounts by address:
$ pocket accounts list

# returns
(0) 190E... # address of application acct
(1) D7D9... # address of client acct
# retrieve the address of our application acct
$ pocket accounts show 190E...
(enter acct password)

# returns 
Address:    190E... # This will be needed for creating the AAT
Public Key: BD4A...
# retrieve the public key for our client.
$ pocket accounts show D7D9...
(enter acct password)

# returns 
Address:    D7D9...
Public Key: 9948... # this will be needed to create the AAT

Create the AAT:

To create the AAT you will have to provide application address and client public key:

# To generate an address, you will need to define appAddress and clientPubKey 
$ pocket apps create-aat 190E... 9948...
(enter password)


# returns 
{
  "version": "0.0.1",
  "app_address": "bd4a...",
  "client_pub_key": "9948...",
  "signature": "a383..."
}

Updated 2 months ago


Using the CLI


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.