Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

How to signed Transaction #230

Closed
kirti301290 opened this issue Oct 6, 2018 · 3 comments
Closed

How to signed Transaction #230

kirti301290 opened this issue Oct 6, 2018 · 3 comments

Comments

@kirti301290
Copy link

hello
facing problem how to sign Transaction and get token then sent to server
pls help me

@skywinder
Copy link
Contributor

This issue was moved to web3swift-team/web3swift#61

@kirti301290
Copy link
Author

need help regarding this

@v57
Copy link
Contributor

v57 commented Oct 9, 2018

This one will sign and send transaction for you.

web3.eth.sendTransactionPromise(_ transaction: EthereumTransaction, options: Web3Options, password: String)

If you want to do it manually then:

try Web3Signer.signTX(transaction: &transaction, keystore: keystoreManager, account: account, password: password)

let result = web3.eth.sendRawTransaction(transaction)

@v57 v57 closed this as completed Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants