Voltar para Documentação

Docs Técnicas

REST Submission

AtlasDB nodes accept signed transactions over REST.

O conteúdo abaixo vem das fontes técnicas do repositório e é prerenderizado no site para leitura direta por pessoas, crawlers e agentes.

AtlasDB nodes accept signed transactions over REST.

Submit

http
POST /api/transaction
Content-Type: application/json

Body:

json
{
  "transaction": {
    "type": "ContractCall",
    "schema": "atlas.tx.v1",
    "version": 1,
    "from": "nbex_sender",
    "nonce": 7,
    "timestamp": 1700000000,
    "payload": {
      "type": "ContractCall",
      "call": {
        "contract_id": "loan-001",
        "entrypoint": "approve_loan",
        "asset": "BRL",
        "args": []
      }
    }
  },
  "signature": "...hex...",
  "public_key": "...hex..."
}

List

http
GET /api/transactions

The list endpoint surfaces transaction status, status kind, details, and error codes when available.

Signing

Transactions are signed over canonical signing bytes from the transaction envelope.

Read-Only Calls (Ethereum Adapter)

For @view functions — no signing required:

http
GET  /api/eth/abi/:artifact_id
POST /api/eth/call/:contract_id

These endpoints accept standard Ethereum calldata (4-byte selector + ABI params) and are compatible with ethers.js, viem, and wagmi. See Ethereum Adapter.