_balancetransfer_.md 1.95 KB
Newer Older
1
2
3
4
5
6
7
8
9
[@amaurymartiny/txwrapper](../README.md)[Globals](../globals.md)["balanceTransfer"](_balancetransfer_.md)

# External module: "balanceTransfer"

## Index

### Interfaces

* [TxInfo](../interfaces/_balancetransfer_.txinfo.md)
Amaury Martiny's avatar
Amaury Martiny committed
10
* [UnsignedTransaction](../interfaces/_balancetransfer_.unsignedtransaction.md)
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

### Variables

* [BLOCKTIME](_balancetransfer_.md#const-blocktime)
* [DEFAULT_MORTAL_LENGTH](_balancetransfer_.md#const-default_mortal_length)
* [ONE_MINUTE](_balancetransfer_.md#const-one_minute)

### Functions

* [balanceTransfer](_balancetransfer_.md#balancetransfer)

## Variables

### `Const` BLOCKTIME

**BLOCKTIME**: *6* = 6

Amaury Martiny's avatar
Amaury Martiny committed
28
*Defined in [src/balanceTransfer.ts:57](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/4ad0632/src/balanceTransfer.ts#L57)*
29
30
31
32
33
34
35

___

### `Const` DEFAULT_MORTAL_LENGTH

**DEFAULT_MORTAL_LENGTH**: *number* =  240 * ONE_MINUTE

Amaury Martiny's avatar
Amaury Martiny committed
36
*Defined in [src/balanceTransfer.ts:59](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/4ad0632/src/balanceTransfer.ts#L59)*
37
38
39
40
41
42
43

___

### `Const` ONE_MINUTE

**ONE_MINUTE**: *number* =  60 / BLOCKTIME

Amaury Martiny's avatar
Amaury Martiny committed
44
*Defined in [src/balanceTransfer.ts:58](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/4ad0632/src/balanceTransfer.ts#L58)*
45
46
47
48
49

## Functions

###  balanceTransfer

Amaury Martiny's avatar
Amaury Martiny committed
50
**balanceTransfer**(`info`: [TxInfo](../interfaces/_balancetransfer_.txinfo.md)): *[UnsignedTransaction](../interfaces/_balancetransfer_.unsignedtransaction.md)*
51

Amaury Martiny's avatar
Amaury Martiny committed
52
*Defined in [src/balanceTransfer.ts:68](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/4ad0632/src/balanceTransfer.ts#L68)*
53
54
55
56
57
58
59
60
61
62

Construct a balance transfer transaction offline. Transactions can be
constructed in such a way that it is valid for at least 240 minutes

**Parameters:**

Name | Type | Description |
------ | ------ | ------ |
`info` | [TxInfo](../interfaces/_balancetransfer_.txinfo.md) | Information required to construct the transaction |

Amaury Martiny's avatar
Amaury Martiny committed
63
**Returns:** *[UnsignedTransaction](../interfaces/_balancetransfer_.unsignedtransaction.md)*