_decodetx_.md 865 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[@amaurymartiny/txwrapper](../README.md)[Globals](../globals.md)["decodeTx"](_decodetx_.md)

# External module: "decodeTx"

## Index

### Functions

* [decodeTx](_decodetx_.md#decodetx)

## Functions

###  decodeTx

**decodeTx**(`signedTx`: string, `metadataRpc`: string): *Partial‹[TxInfo](../interfaces/_balancetransfer_.txinfo.md)›*

17
*Defined in [src/decodeTx.ts:17](https://github.com/amaurymartiny/polkadotjs-wrapper/blob/9e2988f/src/decodeTx.ts#L17)*
18
19
20
21
22
23
24
25
26
27
28
29

Parse the transaction information from an unsigned and signed transaction
offline

**Parameters:**

Name | Type | Description |
------ | ------ | ------ |
`signedTx` | string | - |
`metadataRpc` | string | The SCALE-encoded metadata, as a hex string. Can be retrieved via the RPC call `state_getMetadata`  |

**Returns:** *Partial‹[TxInfo](../interfaces/_balancetransfer_.txinfo.md)›*