Btcb2TransactionInput.fromJson constructor
Btcb2TransactionInput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Btcb2TransactionInput.fromJson(Map<String, dynamic> json) {
return Btcb2TransactionInput(
transactionId: _hex(json, 'transactionId', length: 32),
outputIndex: _uint32(json, 'outputIndex'),
sequence: _uint32(json, 'sequence'),
amountSats: _money(json, 'amountSats', positive: true),
address: _string(json, 'address'),
scriptPubKey: _hexBytes(json, 'scriptPubKey'),
scriptCode: _hexBytes(json, 'scriptCode'),
scriptType: _integer(json, 'scriptType'),
derivationPath: _string(json, 'derivationPath'),
);
}