$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"