# Creating a Transaction

The code below shows how to create a new transaction (having TaPoS (reference block) data automatically fetched from the remote Hive API endpoint):

import { createHiveChain } from '@hiveio/wax';

const chain = await createHiveChain();

// expirationTime is optional in this case.
await chain.createTransaction();

// explicit expirationTime can be set this way:
await chain.createTransaction('+10m');