Skip to main content
POST
/
{chainId}
/
transactions
Create Transaction
curl --request POST \
  --url https://api.caminotreasury.com/v1/{chainId}/transactions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
  "type": "deposit",
  "from": "<string>",
  "contract": "<string>",
  "token": "<string>",
  "amount": "<string>",
  "walletId": 123
}
'
{
  "transaction": {
    "hash": "<string>",
    "chainId": 123,
    "status": "pending"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Pass your key in the x-api-key header.

Path Parameters

chainId
integer
required

Blockchain chain ID

Body

application/json
hash
string
required

Transaction hash from the blockchain

Pattern: ^0x[a-fA-F0-9]{64}$
Example:

"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"

type
enum<string>
required

Transaction type

Available options:
deposit,
withdrawal,
yield,
approval,
other
from
string
required

Sender address

contract
string
required

Contract address that was called

token
string
required

ERC-20 token contract address

amount
string
required

Raw token amount (integer string)

walletId
integer
required

Wallet ID (must belong to the authenticated organization)

Response

Transaction created and queued for indexing

transaction
object