Skip to main content
POST
/
v2
/
fungible
/
msgs
Generate Transaction
curl --request POST \
  --url https://router-api.initia.xyz/v2/fungible/msgs \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount_in": "1000000",
  "amount_out": "999000",
  "source_asset_chain_id": "interwoven-1",
  "source_asset_denom": "uinit",
  "dest_asset_chain_id": "8453",
  "dest_asset_denom": "0x...",
  "address_list": [
    "init1abc...",
    "0xdef..."
  ],
  "operations": [],
  "slippage_tolerance_percent": "1"
}
'
{
  "txs": [
    {
      "cosmos_tx": {
        "chain_id": "interwoven-1",
        "msgs": [],
        "signer_address": "init1abc..."
      }
    }
  ]
}

Body

application/json
amount_in
string
required

Input amount in smallest denomination.

amount_out
string
required

Expected output amount from the route response.

source_asset_chain_id
string
required

Source chain ID.

source_asset_denom
string
required

Source asset denomination.

dest_asset_chain_id
string
required

Destination chain ID.

dest_asset_denom
string
required

Destination asset denomination.

address_list
string[]
required

Array of recipient and/or sender address for each chain in the path, corresponding to the required_chain_addresses array returned from a route request.

Minimum array length: 2
operations
object[]
required

Route operations from the /v2/fungible/route response.

slippage_tolerance_percent
string
required

Slippage tolerance as a percentage (e.g. "1" for 1%).

signed_op_hook
object

Signed OP hook data, required when the route has required_op_hook true.

ignore_blacklist
boolean
default:false

Include blacklisted networks.

Response

200 - application/json

Successful response

txs
object[]

Array of transaction objects. Each can be a cosmos_tx, evm_tx, or svm_tx.