---
name: luniumpay-usdt-wallet
description: "Carteira USDT/USDC na LuniumPay — depositar stablecoin em várias redes, manter saldo em cripto e pagar Pix com ele por chave Pix ou Pix Copia e Cola, com cotação, reserva e comprovante. Use quando o dono do app quer pagar contas, fornecedores ou clientes em Pix usando USDT que já possui, sem converter antes. EN: USDT/USDC wallet at LuniumPay: deposit stablecoin on several networks, hold a crypto balance and pay Pix from it by key or copy-and-paste, with quote, reserve and receipt."
license: MIT
metadata:
  version: "2.2.0"
  api: "1.45.2"
title: luniumpay-usdt-wallet
canonical_url: https://skilld.dev/gh/luniumpay/lunium-agent-skills/luniumpay-usdt-wallet
last_updated: 2026-10-26T17:05:31.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [.claude-plugin/plugin.json](https://skilld.dev/api/skills-raw/luniumpay/lunium-agent-skills/luniumpay-usdt-wallet/.claude-plugin/plugin.json).
>
> If the user asked to install this Skill, run `npx skilld install luniumpay/lunium-agent-skills/luniumpay-usdt-wallet`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/luniumpay-usdt-wallet`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/luniumpay/lunium-agent-skills/luniumpay-usdt-wallet) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/luniumpay-usdt-wallet`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/luniumpay-usdt-wallet --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/luniumpay-usdt-wallet --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Carteira USDT: saldo em stablecoin, Pix pago com ele

Liberada para todas as chaves de produção. Valores em **string decimal**
(`"amount": "100"`, `"brl_amount": "250.00"`).

## 1. Ver a carteira
`GET /carteira-usdt` → `enabled`, `payments_enabled`, `withdrawals_enabled`, `balance`
(`available` paga Pix agora, `reserved` preso em cotações, `confirming` em confirmação),
`networks[]` (`network`, `name`, `assets[]`, `eta_minutes`), `min_deposit`, `min_payment_brl`,
`deposit_validity_hours`, `payment_methods`, `pix_rules` (teto por Pix etc.).

## 2. Depositar
`POST /carteira-usdt/deposits` `{"amount": "100", "network": "tron"}` →
`deposit_id`, `address`, `network`, `accepted_assets`, `amount_to_send`,
`expires_at`, `instructions`. Mostre endereço, rede e prazo **exatamente como
vieram**; nunca gere nem reutilize endereço. `GET /carteira-usdt/deposits` →
`items[]` com `status` `waiting` → `confirming` → `available` (creditado) · `expired`.
`confirming` ainda não é saldo livre.

## 3. Cotar um Pix
`POST /carteira-usdt/quote` com **ou** `{"brl_amount": "250.00", "pix_key": "<chave>",
"pix_key_type": "cnpj"}` **ou** `{"br_code": "000201…"}` (copia e cola: valor e
recebedor vêm do código). Resposta: `usdt_order`, `withdrawal_fee`, `usdt_total`,
`usdt_reserved`, `merchant_name`, `expires_at`, `quote_id`. Mostre o total em
USDT como cotação com validade.

## 4. Pagar
`POST /carteira-usdt/payments` com os mesmos campos da cotação + `external_id`
(e `quote_id` se usou `br_code`). Resposta: `payment_id`, `status`, `final`,
`usdt_debited`, `pix_e2e`, `recipient_name`, `receipt_url`, `error`.
`GET /carteira-usdt/payments/{id}` até `final: true`. Histórico:
`GET /carteira-usdt/payments`; extrato: `GET /carteira-usdt/statement`.

## Sacar USDT de volta
`GET /carteira-usdt/withdrawals/networks` (rotas e mínimos) →
`POST /carteira-usdt/withdrawals/quote` (prévia, sem reserva) →
`POST /carteira-usdt/withdrawals` (confirma, com `external_id`) →
`GET /carteira-usdt/withdrawals/{id}` ou `GET /carteira-usdt/withdrawals/external/{external_id}`
(recupera pela sua referência após timeout). Lista: `GET /carteira-usdt/withdrawals`.

## Armadilhas
- Rede errada perde fundos: confirme `network` com o dono antes de mostrar o endereço.
- `saldo_insuficiente` (409): `available` precisa cobrir `usdt_reserved` (ordem + taxa + reserva).
  Leia `balance` e oriente a depositar ou reduzir.
- Piso por Pix (`min_payment_brl`) e teto (`pix_rules`) vêm da API.
- Cotação vence (`expires_at`); recote em vez de insistir.
- `final: false` = em andamento; não pague de novo. Com `error`, leia e informe.
- Copia e cola de valor fixo paga EXATAMENTE o valor do código.

## Sandbox (limite honesto)
`GET /carteira-usdt` e `POST /carteira-usdt/quote` respondem com cotação simulada; o depósito
nasce `waiting` e **não existe crédito simulado**, então `POST /carteira-usdt/payments` devolve
`saldo_insuficiente`. Prove a carteira com chave de produção e um depósito pequeno, ou use o
sandbox só para o contrato (campos, erros, UI). Para o caminho cripto → Pix com simulação
completa, use `luniumpay-crypto-sale`.
