Hi everyone, I’ve got a problem when I try to issue a permissioned token ASA on testnet following the guide algo-builder/examples/permissioned-token at master · scale-it/algo-builder · GitHub.
I created correctly smart contract, ASA and clawback lsig but I’ve got a problem when I try to run ISSUE operation to transfer ASA from reserve to receiver.
Here my information:
Owner / Issuer:
YEWT5M5KZ2OTKW4T6V2FJXTTZOGDLGKGEUXIHCT2OHVLZTBH3KNJOQFEI4
AssetID:
71192910
Receiver (whitelisted and opt in done): TA7BUY22FODMXSJZSPQ4VFXW2KRQIT5JCUOANVF3UFTPNKBDN5AEAITSCU
Controller APP ID:
71196884
Clawback lsig:
clawbackLsig :
LogicSigAccount {
lsig: LogicSig {
tag: Uint8Array(7) [...],
logic: [...],
args: [],
sig: undefined,
msig: undefined
},
sigkey: undefined
}
When I try to run issue command with algob with algob run \scripts\admin\issue.js
It returns me error
Transaction Failed Error: cannot POST /v2/transactions (400)
at Response.toError (C:\Users\X\AppData\Roaming\nvm\v14.17.0\node_modules\@algo-builder\algob\node_modules\superagent\src\node\response.js:95:15)
at Response._setStatusProperties (C:\Users\X\AppData\Roaming\nvm\v14.17.0\node_modules\@algo-builder\algob\node_modules\superagent\src\response-base.js:126:48)
at new Response (C:\Users\X\AppData\Roaming\nvm\v14.17.0\node_modules\@algo-builder\algob\node_modules\superagent\src\node\response.js:41:8)
at Request._emitResponse (C:\Users\X\AppData\Roaming\nvm\v14.17.0\node_modules\@algo-builder\algob\node_modules\superagent\src\node\index.js:928:20)
at fn (C:\Users\X\AppData\Roaming\nvm\v14.17.0\node_modules\@algo-builder\algob\node_modules\superagent\src\node\index.js:1130:38)
at IncomingMessage.<anonymous> (C:\Users\X\AppData\Roaming\nvm\v14.17.0\node_modules\@algo-builder\algob\node_modules\superagent\src\node\parsers\image.js:8:5)
at IncomingMessage.emit (events.js:388:22)
at IncomingMessage.emit (domain.js:470:12)
at endReadableNT (internal/streams/readable.js:1336:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
status: 400,
text: undefined,
method: 'POST',
path: '/v2/transactions'
}
Here my group trx (issuanceParams):
issuanceParams : [
{
type: 6,
sign: 0,
fromAccount: {
name: 'owner',
addr: 'YEWT5M5KZ2OTKW4T6V2FJXTTZOGDLGKGEUXIHCT2OHVLZTBH3KNJOQFEI4',
sk: [Uint8Array]
},
appID: 71196884,
payFlags: { totalFee: 10000 },
appArgs: [ 'str:issue' ],
foreignAssets: [ 71192910 ]
},
{
type: 4,
sign: 1,
fromAccountAddr: 'Y7D5YKX6UM4ZRML6UKXOSSMPXFB6IB6LKGOS2M66SNPFCWTN5EDT6K2E6M',
recipient: 'TA7BUY22FODMXSJZSPQ4VFXW2KRQIT5JCUOANVF3UFTPNKBDN5AEAITSCU',
assetID: 71192910,
revocationTarget: 'YEWT5M5KZ2OTKW4T6V2FJXTTZOGDLGKGEUXIHCT2OHVLZTBH3KNJOQFEI4',
amount: 1,
lsig: LogicSigAccount { lsig: [LogicSig], sigkey: undefined },
payFlags: { totalFee: 10000 }
}
]
What am I missing?
Thank you