cairn-cli 0.1.6

Backpac Agent-Native CLI for autonomous settlement workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$poiId = "00ba0454-219e-4142-b120-9be1f72cc686"
$wallet = "Bny8Aneag41VEw7f5p4okbFGpUDANXssjVThqpP3h4tA"
$apiUrl = "http://127.0.0.1:3000"

Write-Host "Generating fresh Agent JWT..." -ForegroundColor Cyan
$jwt = npx ts-node ../xyz.backpac.worker-ts/scripts/gen-test-token.ts | Select-Object -Last 1

if (-not $jwt) {
    Write-Error "Failed to generate JWT"
    exit 1
}

$env:BACKPAC_JWT = $jwt
Write-Host "Submitting bound intent to $apiUrl..." -ForegroundColor Cyan

$params = '[\"Bny8Aneag41VEw7f5p4okbFGpUDANXssjVThqpP3h4tA\"]'

cargo run -- intent send --method getAccountInfo --params "$params" --poi-id $poiId --api-url $apiUrl --x-backpac-hostname "solana-devnet.backpac.xyz"