naco-api/sql/queries/SaveTransaction.sql
2025-12-02 19:33:03 +00:00

4 lines
No EOL
182 B
SQL

-- name: SaveTransaction :many
INSERT INTO transactions (x402_transaction_hash, amount, asset, network, recipient, sender)
VALUES ($1, $2, $3, $4, $5, $6)
RETURNING id, created_at;