We have had the same problem with uncommon (custom) scripts forever, for example despite P2SH being very old you still can not find any tool that allows spending from any script that it doesn't already recognized or hard-coded into the tool (eg. m-of-n multisig is defined, conditional with OP_IF is not).
OK, thanks. I funded the hash of the following script:
<0x3044022002748547ba97e986d26b48dc2093c21f04334aea4694470328d605c15971a8f302207501b30f114d1c27e5d8fa903635d9485dca60c705dbdf2a12daf795239d5e5e>
<'hello'>
<'🌎'>
OP_CAT
<0x02211862a1f993b4578d595c3e00b0935cd9ccc29a869cab7a680e36efc2e7b548>
OP_CHECKSIGFROMSTACK
Which is a signed "Hello World" message. It only takes you to publish this script to get the testnet bitcoin from here:
tb1qmklyqnchpyfqvz3lkmxf6y8k47fcthwkmffvhu4u8ha0xqrmelrspj7f9a.
But, I'm afraid spending it would be non-standard, wouldn't it?
Same address has been funded in Liquid testnet, but no one has claimed it, and I'm thinking it may be due to non-standardness there as well:
tex1qy85zk844lwd4zazrxhqls07k4sx736h8pcqrjpr2lj58v5l3mhaq32qtrl.
I don't know any other way beside using
createrawtransaction on Bitcoin Core. Although according to
https://bitcoin.stackexchange.com/a/120862, you can import your address to Bitcoin Core with help of descriptor (assuming the script can be represented using Miniscript) which should make it a bit easier.
Thanks. I'll look on Miniscript. Does that allow any script to be executed, or does it have to be standard?