Difference between revisions of "Createseries"
Jump to navigation
Jump to search
(Move to its own page.) |
(→Errors: Note that series numbers must increase monotonically) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
This call instructs the [[wallet (blockchain)|blockchain wallet]] to create and populate new series. | This call instructs the [[wallet (blockchain)|blockchain wallet]] to create and populate new series. | ||
| − | ===Arguments | + | ==Status== |
| + | |||
| + | ;Version 1 Release candidate | ||
| + | :This version of the specification contains is believed to be complete, but is still subject to revision before version 1 | ||
| + | |||
| + | ==Arguments== | ||
;version | ;version | ||
| Line 17: | Line 22: | ||
:The <code>n</code> value for the <code>m-of-n</code> multiscript opcode is implicitly derived from the number of xpubs provided here. | :The <code>n</code> value for the <code>m-of-n</code> multiscript opcode is implicitly derived from the number of xpubs provided here. | ||
| − | + | ==Return Values== | |
| − | + | ===Data=== | |
none | none | ||
| − | + | ===Errors=== | |
;Success | ;Success | ||
:The wallet has created the series. | :The wallet has created the series. | ||
| Line 40: | Line 45: | ||
:Each xpub supplied must be a valid [[BIP32]] extended public key. | :Each xpub supplied must be a valid [[BIP32]] extended public key. | ||
;Invalid series | ;Invalid series | ||
| − | :Series numbers supplied as part of the <code>series identifier</code> must be positive integers. | + | :Series numbers supplied as part of the <code>series identifier</code> must be positive integers, and must be exactly one higher than the current highest defined series for the pool. |
[[Category:Voting Pool Wallet API]] | [[Category:Voting Pool Wallet API]] | ||
Latest revision as of 16:34, 16 January 2015
Description
This call instructs the blockchain wallet to create and populate new series.
Status
- Version 1 Release candidate
- This version of the specification contains is believed to be complete, but is still subject to revision before version 1
Arguments
- version
- Should be 1. This field allows for future expansion of the voting pool wallet specification.
- series identifier
- The series to be created
- required signatures
- The number of signatures needed to sign an outgoing transaction. This is the
mvalue for them-of-nmultiscript opcode.
- list of xpubs
- The
nvalue for them-of-nmultiscript opcode is implicitly derived from the number of xpubs provided here.
Return Values
Data
none
Errors
- Success
- The wallet has created the series.
- Unknown version
- The wallet does not support the supplied version number.
- Series already exists
- This call should not allow the same series number to be created in the same voting pool. If it's necessary to change an already-defined series, the
replaceseriescall should be used instead. - Too many pubkeys
- This error indicates that more than the maximum number of pubkeys allowed by
OP_CHECKMULTISIGhave been supplied. - Duplicate pubkeys
- xpubs in a series must be unique.
- Insufficient pubkeys
- The number of xpubs supplied must be larger than
required signatures - Invalid pool
- The pool supplied as part of the
series identifiermust be a valid color definition. - Invalid pubkey
- Each xpub supplied must be a valid BIP32 extended public key.
- Invalid series
- Series numbers supplied as part of the
series identifiermust be positive integers, and must be exactly one higher than the current highest defined series for the pool.