script args
a key of config.SCRIPTS
// parse a predefined lock to an address
encodeToConfigAddress('0x12345678123456781234567812345678', 'SECP256K1_BLAKE160');
// parse a custom lock to an address
encodeToConfigAddress('0x12345678123456781234567812345678', 'MY_CUSTOM_LOCK', {
SCRIPTS: {
MY_CUSTOM_LOCK: {...}
}
})
encode a script to an address with args and a key of config
script args
a key of config.SCRIPTS
Optional
config?: C// parse a predefined lock to an address
encodeToConfigAddress('0x12345678123456781234567812345678', 'SECP256K1_BLAKE160');
// parse a custom lock to an address
encodeToConfigAddress('0x12345678123456781234567812345678', 'MY_CUSTOM_LOCK', {
SCRIPTS: {
MY_CUSTOM_LOCK: {...}
}
})
Generated using TypeDoc
encode a script to an address with args and a key of config