| Crates.io | rosetta-tx-polkadot |
| lib.rs | rosetta-tx-polkadot |
| version | 0.4.0 |
| created_at | 2023-03-30 13:03:20.288559+00 |
| updated_at | 2023-06-29 16:24:31.827427+00 |
| description | Polkadot transaction builder. |
| homepage | |
| repository | https://github.com/analog-labs/chain-connectors |
| max_upload_size | |
| id | 825073 |
| size | 8,280 |
This project is used to build transactions for substrate chains.
PolkadotTransactionBuilder:Its implementation of `TransactionBuilder` and implements the following methods:
1. `transfer`
2. `method_call`
3. `create_and_sign`
transfer:Creates `PolkadotMetadataParams` for transfer call.
method_call:Not implemented.
create_and_sign:When `metadata` is created we use this call to create Ethereum Transaction and sign it. It takes following arguments.
`config`: chain sepecific config.
`metadata_params`: Metadata params which created metadata for this call.
`metadata`: Metadata required make transaction.
`secret_key`: wallet's secret key (used to sign the transaction).
It creates the transaction and signs it and then returns it in bytes.