POST
/
api
/
{chainId}
/
transaction
/
encode
curl --request POST \
  --url https://api-staging.adamik.io/api/{chainId}/transaction/encode \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "transaction": {
    "data": {
      "memo": "<string>",
      "format": "json",
      "mode": "<string>",
      "senderPubKey": "<string>",
      "contractType": "argentx"
    }
  }
}'
{
  "chainId": "algorand",
  "transaction": {
    "data": {
      "fees": "<string>",
      "gas": "<string>",
      "nonce": "<string>",
      "memo": "<string>",
      "format": "json",
      "params": "<any>",
      "mode": "<string>",
      "senderPubKey": "<string>",
      "contractType": "argentx"
    },
    "encoded": "<string>"
  },
  "status": {
    "errors": [
      {
        "message": "<string>"
      }
    ],
    "warnings": [
      {
        "message": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

chainId
enum<string>
required
Available options:
algorand,
cosmoshub,
cosmoshub-testnet,
osmosis,
osmosis-testnet,
celestia,
celestia-testnet,
dydx,
axelar,
ethereum,
sepolia,
holesky,
zksync,
zksync-sepolia,
injective-evm-testnet,
base,
base-sepolia,
optimism,
optimism-sepolia,
arbitrum,
arbitrum-sepolia,
bitcoin,
monad-private-testnet,
bitcoin-testnet,
polygon,
polygon-amoy,
bsc,
bsc-testnet,
linea,
linea-sepolia,
avalanche,
avalanche-fuji,
gnosis,
gnosis-chiado,
moonbeam,
moonriver,
moonbase,
fantom,
mantle,
litecoin,
dogecoin,
ton,
chiliz,
chiliz-testnet,
injective,
akash,
band,
dymension,
kyve,
neutron,
terra2,
stargaze,
tron,
evmos,
irisnet,
juno,
lum-network,
omniflix,
sei,
medibloc,
passage,
quasar,
seda,
sommelier,
shentu,
stride,
chihuahua,
bitsong,
persistence,
comdex,
fetch-ai,
humans-ai,
ki,
likecoin,
mars-hub,
provenance,
quicksilver,
saga,
ux-chain,
kava,
starknet

Body

application/json
transaction
object
required

Response

200 - application/json
Returns the transaction data encoded into a blockchain-specific format, ready for broadcasting.
chainId
enum<string>
required
Available options:
algorand,
cosmoshub,
cosmoshub-testnet,
osmosis,
osmosis-testnet,
celestia,
celestia-testnet,
dydx,
axelar,
ethereum,
sepolia,
holesky,
zksync,
zksync-sepolia,
injective-evm-testnet,
base,
base-sepolia,
optimism,
optimism-sepolia,
arbitrum,
arbitrum-sepolia,
bitcoin,
monad-private-testnet,
bitcoin-testnet,
polygon,
polygon-amoy,
bsc,
bsc-testnet,
linea,
linea-sepolia,
avalanche,
avalanche-fuji,
gnosis,
gnosis-chiado,
moonbeam,
moonriver,
moonbase,
fantom,
mantle,
litecoin,
dogecoin,
ton,
chiliz,
chiliz-testnet,
injective,
akash,
band,
dymension,
kyve,
neutron,
terra2,
stargaze,
tron,
evmos,
irisnet,
juno,
lum-network,
omniflix,
sei,
medibloc,
passage,
quasar,
seda,
sommelier,
shentu,
stride,
chihuahua,
bitsong,
persistence,
comdex,
fetch-ai,
humans-ai,
ki,
likecoin,
mars-hub,
provenance,
quicksilver,
saga,
ux-chain,
kava,
starknet
transaction
object
required
status
object
required