Skip to content

Commit

Permalink
docs: add fetchFeeInfo to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Oct 1, 2024
1 parent 7ead6a5 commit e706303
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const call = assetsApi.createTransferTransaction(
### AssetTransferApi & AssetTransferApiOpts & TransferArgsOpts

```Typescript
// The AssetTransferApi exposes one method as of now called: `createTransferTransaction`
// The AssetTransferApi method: `createTransferTransaction`

/**
* Create an XCM transaction to transfer Assets, or native tokens from one
Expand All @@ -114,6 +114,20 @@ AssetTransferApi.createTransferTransaction(
)
```

```typescript
// The AssetTransferApi method: `fetchFeeInfo`

/**
* Fetch estimated fee information for an extrinsic
*
* @param tx a payload, call or submittable
* @param format The format the tx is in
*/
AssetTransferApi.fetchFeeInfo(
tx: ConstructedFormat<T>,
format: T,
)
```

```typescript
// AssetTransferApiOpts are the options for the `AssetTransferApi`
Expand Down

0 comments on commit e706303

Please sign in to comment.