POST
/
v1
/
operations
/
transactions:export
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";

const avaCloudSDK = new AvaCloudSDK({
  serverURL: "https://api.example.com",
  chainId: "43114",
  network: "mainnet",
});

async function run() {
  const result = await avaCloudSDK.data.operations.exportTransactions({
    type: "TRANSACTION_EXPORT_EVM",
    firstDate: "2023-05-01",
    lastDate: "2023-05-02",
    options: {
      addresses: [],
      includeChains: [
        "43114",
      ],
    },
  });

  // Handle the result
  console.log(result);
}

run();
{
  "operationId": "<string>",
  "operationType": "TRANSACTION_EXPORT_PRIMARY_NETWORK",
  "operationStatus": "RUNNING",
  "message": "<string>",
  "metadata": {
    "code": "ErrInvalidRequest",
    "downloadUrl": "<string>",
    "nextDate": "<string>"
  },
  "createdAtTimestamp": 123,
  "updatedAtTimestamp": 123
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Body

application/json

Response

201
application/json

Successful response

The response is of type object.