diff --git a/builders/interoperability/xcm/xcm-sdk/v1/reference.md b/builders/interoperability/xcm/xcm-sdk/v1/reference.md index e59d6b806..bf43e416a 100644 --- a/builders/interoperability/xcm/xcm-sdk/v1/reference.md +++ b/builders/interoperability/xcm/xcm-sdk/v1/reference.md @@ -110,15 +110,16 @@ The XCM SDK is based on the premise of defining an asset to transfer and then de - `SourceChainTransferData` - defines the source chain data for the transfer - | Name | Type | Description | - |:--------------------:|:-------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:| - | `balance` | *AssetAmount* | The balance of the asset being transferred for the source address | - | `chain` | *AnyChain* | The source chain information | - | `existentialDeposit` | *AssetAmount* | The existential deposit for the asset being transferred on the source chain | - | `fee` | *AssetAmount* | The amount of fees for the asset being transferred on the source chain | - | `feeBalance` | *AssetAmount* | The balance of the asset being transferred on the source chain | - | `min` | *AssetAmount* | The minimum amount of the asset that should be kept on the source chain, taking into consideration the `existentialDeposit` and `fee` for the transfer | - | `max` | *AssetAmount* | The maximum amount of the asset that *can* be transferred | + | Name | Type | Description | + |:-----------------------:|:-------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:| + | `balance` | *AssetAmount* | The balance of the asset being transferred for the source address | + | `chain` | *AnyChain* | The source chain information | + | `destinationFeeBalance` | *AssetAmount* | The balance of the asset used to pay for fees in the destination chain | + | `existentialDeposit` | *AssetAmount* | The existential deposit for the asset being transferred on the source chain | + | `fee` | *AssetAmount* | The amount of fees for the asset being transferred on the source chain | + | `feeBalance` | *AssetAmount* | The balance of the asset being transferred on the source chain | + | `min` | *AssetAmount* | The minimum amount of the asset that should be kept on the source chain, taking into consideration the `existentialDeposit` and `fee` for the transfer | + | `max` | *AssetAmount* | The maximum amount of the asset that *can* be transferred | ## Core Methods {: #core-sdk-methods } @@ -219,7 +220,7 @@ When building transfer data with the `Sdk().assets()` function, you'll use multi |:----------:|:--------:|:---------------------------------------------------------------------------------------------:| | `accounts` | function | Sets the source address, the destination address, and the signer(s) required for the transfer | -- `accounts()` - sets the source address, the destination address, and the signer(s) required for the transfer. **Must call `destionation()` first** +- `accounts()` - sets the source address, the destination address, and the signer(s) required for the transfer. **Must call `destination()` first** ??? code "Parameters" | Name | Type | Description | diff --git a/builders/interoperability/xcm/xcm-sdk/v1/xcm-sdk.md b/builders/interoperability/xcm/xcm-sdk/v1/xcm-sdk.md index 2999b1456..97039bcb7 100644 --- a/builders/interoperability/xcm/xcm-sdk/v1/xcm-sdk.md +++ b/builders/interoperability/xcm/xcm-sdk/v1/xcm-sdk.md @@ -329,6 +329,13 @@ As previously mentioned, regardless of which method you use to build the transfe weight: 1000000000, ws: 'wss://rpc.polkadot.io' }, + destinationFeeBalance: e { + key: 'dot', + originSymbol: 'DOT', + amount: 0n, + decimals: 10, + symbol: 'DOT' + }, existentialDeposit: e { key: 'dot', originSymbol: 'DOT', @@ -513,6 +520,13 @@ The `swap` function returns the transfer data with the original source chain and id: 1284, rpc: 'https://rpc.api.moonbeam.network' }, + destinationFeeBalance: e { + key: 'dot', + originSymbol: 'DOT', + amount: 0n, + decimals: 10, + symbol: 'DOT' + }, existentialDeposit: e { key: 'glmr', originSymbol: 'GLMR',