> For the complete documentation index, see [llms.txt](https://docs.coinfactory.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coinfactory.app/launchpad/integration/reading-bond-details.md).

# Reading Bond Details

### Bonding Details

Returns the complete current state of a token and its bonding curve.

```solidity
/**
 * @dev Retrieves the details of a bond token.
 * @param token The address of the bond token.
 * @return detail The BondDetail struct containing the royalty, bond info, and steps of the bond token.
*/
function getDetail( 
    address token 
) external view returns (BondDetail memory detail);

```

### Bond Status

```solidity
/**
 * @notice Current lifecycle status of a bond.
 */
enum BondStatus {
    Active,
    Finalized,
    Migrated
}

```

<table><thead><tr><th width="107.19140625">Value</th><th width="174.9921875">Status</th><th>Description</th></tr></thead><tbody><tr><td><code>0</code></td><td><code>Active</code></td><td>Bonding curve trading is available</td></tr><tr><td><code>1</code></td><td><code>Finalized</code></td><td>Sale supply has been reached and trading has stopped</td></tr><tr><td><code>2</code></td><td><code>Migrated</code></td><td>Liquidity has been migrated to the DEX</td></tr></tbody></table>

### Bond Information

The nested `BondInfo` structure contains the main token and bond state.

```solidity
struct BondInfo { 
    BondStatus status; 
    address creator; 
    address token; 
    address pair; 
    uint8 decimals; 
    string symbol; 
    string name; 
    string metadataUrl; 
    uint40 createdAt; 
    uint256 currentSupply; 
    uint256 saleSupply; 
    uint256 liquiditySupply; 
    uint128 priceForNextMint; 
    address reserveToken; 
    uint8 reserveDecimals; 
    string reserveSymbol; 
    string reserveName; 
    uint256 reserveBalance; 
}

```

### Integration Notes

All token and reserve amounts are returned in their smallest onchain units. Use `decimals` and `reserveDecimals` from `getDetail` when formatting values for users.
