Sui Transfers

Native currency transfer

Following is an example of the body of a Create Transaction request for a native Sui currency transfer. The general details of creating the request appear here.

{
    "signer_type": "api_signer",
    "type": "sui_transaction",
    "details": {
        "type": "sui_transfer",
         "to": {
            "type": "hex",
            "address": "0xa398ae37156b6c4b5ee327a7e95a2a8387e1ce9206c91f97235316502aca8883"
          },
        "value": {
            "type": "value",
            "value": "10000000000"
        },
        "gas_config": {
            "payment": []
        },
        "asset_identifier": {
            "type": "sui",
            "details": {
                "type": "native",
                "chain": "sui_mainnet"
            }
        }
    },
    "note": "Transferring 10 SUI",
    "vault_id": "8988893a-cf29-4a02-acc7-5bb723c74f47"
}

Coin transfer

Following is an example of the body of a Create Transaction request for a coin transfer. The general details of creating the request appear here.

{
  "signer_type": "api_signer",
  "type": "sui_transaction",
  "details": {
    "type": "sui_transfer",
    "to": {
      "type": "hex",
      "address": "your_destination_address"
    },
    "value": {
      "type": "value",
      "value": "how_much_you_want_to_spend"
    },
    "gas_config": {
      "payment": []
    },
    "asset_identifier": {
      "type": "sui",
      "details": {
        "type": "coin",
        "coin_type": {
          "chain": "sui_mainnet",
          "coin_type_str": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"
        }
      }
    }
  },
  "note": "Hello Fordefi",
  "vault_id": "your_sui_vault_id"
}