sign method

Build the transaction to BCS bytes, and sign it with the provided keypair.

Implementation

Future<SignatureWithBytes> sign(SignOptions options) async {
	final bytes = await build(options);
	return options.signer.signTransactionBlock(bytes);
}