{"_id":"@dark-fusion-protocol/scl-wallet","_rev":"11-6e168bbd0edcc8ded2fb4272e2987101","name":"@dark-fusion-protocol/scl-wallet","dist-tags":{"latest":"1.0.5"},"versions":{"0.0.1":{"name":"@dark-fusion-protocol/scl-wallet","version":"0.0.1","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@0.0.1","gitHead":"85b6c72ea9c37b404fe494f790baa8a25843958a","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-fbDsrRsCSefIze5VsXjsi5OPUDhHcjg4ez+UoA+6W1i2Zgl0sr6NFdu/7I9/aF+1SinCNTNIOeJE/TkhtzQ4Bg==","shasum":"0bf149c8961aa372d8d88842f6ad6632fd0fa783","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-0.0.1.tgz","fileCount":7,"unpackedSize":1483371,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxNEAJMpSLgZWrQSChfQP+f3u3b8NokOcK+I07p4YzjAiEA4/h4YN9rRxXYt3zr4olNJeNn9FsAPUJ/t6gP1uy+APQ="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_0.0.1_1706522301609_0.976068518183451"},"_hasShrinkwrap":false},"0.0.2":{"name":"@dark-fusion-protocol/scl-wallet","version":"0.0.2","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@0.0.2","gitHead":"d3985e86469c82ae1ca71de8cc0c2d20bd73739d","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-IsD8og82vVH2Ry4tB5UrMncBrzeAyaOfKs51C76xrvTmjMg+NVXsLrP9ExsTGVICmFBh2zyUeS15On1lDNmaZg==","shasum":"9f747cac47ba1b33a8c4f09bcbe48d57552bdc67","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-0.0.2.tgz","fileCount":7,"unpackedSize":1483368,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWC1STtb2b4NiirPMlOV+SvCpYePK0wq9pOI16SrqMRQIhAIUw/yMjuJoJX1i0+9e27YZftbEVO0RcpGiL0E03wbqJ"}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_0.0.2_1706523016943_0.5670239236818402"},"_hasShrinkwrap":false},"0.0.3":{"name":"@dark-fusion-protocol/scl-wallet","version":"0.0.3","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@0.0.3","gitHead":"23036ad9f0b4e1de21fc160e6fb683d3a9da3a23","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-LzdBoWtEGKqAypvUaloCfJ3RCo4nuhHYr/YPeVaEETWqpgucK1CaOy2dPIlYhmpbYkdw019d9q7h69Cx8seexQ==","shasum":"6937355e945d58b538f0e5be7ec18051a25d819f","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-0.0.3.tgz","fileCount":7,"unpackedSize":1472923,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHCrAAc5ad2uauuTGCRqscQGuHukr0mu1kOEVtKrCje1AiEA/YRfyoa0m5mogk/UWTOiZovK3/zaBxIdjQO1LC4o95Q="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_0.0.3_1706604708394_0.42921528659447783"},"_hasShrinkwrap":false},"1.0.0":{"name":"@dark-fusion-protocol/scl-wallet","version":"1.0.0","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@1.0.0","gitHead":"8014d1909e8d64bdcfc5f305796c92bd6cccb1ab","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-o6v6xZciLZ04Pna37Q80WRzcdd6r8kqAmypn/FkSLmIl0bEvaJNs9isfQhKnZAPqA3I7lJDZVR/0J3sayHyM8Q==","shasum":"0776727fd265341781ef04c5ac406963ba6f38b8","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-1.0.0.tgz","fileCount":7,"unpackedSize":1524125,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUN85b2Cl7qyfnqem/T5XROyWPweNZjWlcQti65nSCPAiEAjqnceNYeFrHI5i5H3KgY4Jov8LbS4Z963smEO8fao5w="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_1.0.0_1706684243374_0.9916855751668843"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dark-fusion-protocol/scl-wallet","version":"1.0.1","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@1.0.1","gitHead":"8014d1909e8d64bdcfc5f305796c92bd6cccb1ab","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ORgTNJo0FZlIKseNWb47yIOue+MX0Fchs3wKNC6zS9yPNGXGwllR93j1kZy1gO3o7fYAZPAvt5yz+suG6RgtuA==","shasum":"ae2d82c849f259474a1e18a417e95ee428819f2b","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-1.0.1.tgz","fileCount":7,"unpackedSize":1549179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUNdDQNwntj3lHZZMAAFeJcnx5CsockIP1MX1BtE+5IAiBiKsLqllDUckt9ptQ8N1Ir1CtUHd5xDgeqmdXSfVYjkw=="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_1.0.1_1706897681173_0.37183396065108165"},"_hasShrinkwrap":false},"1.0.2":{"name":"@dark-fusion-protocol/scl-wallet","version":"1.0.2","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@1.0.2","gitHead":"5f390ac0dbbcbb33871340814a97ce7bf3844520","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8xt7OfPznSjsw5t+bWJAccL2MQOToqWyK/9qnpEA7v8KVZCVT0vj45NYgsiU7G5U3qCU4vHanWyBgg+QCu8LMQ==","shasum":"80d318e0850ba216e9e28977b188fca8401c76e5","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-1.0.2.tgz","fileCount":7,"unpackedSize":1549825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRB+Uv88TALzULvza8bLdcnlkrGJXSHYKnjx9AOX62hAiEAhm4im5hpp4nhfVRLXw6wPI93+ZRmyQcHKUv6toQx98c="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_1.0.2_1706898865086_0.05641993980595106"},"_hasShrinkwrap":false},"1.0.3":{"name":"@dark-fusion-protocol/scl-wallet","version":"1.0.3","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@1.0.3","gitHead":"5f390ac0dbbcbb33871340814a97ce7bf3844520","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ujWJKa8YvJVSLm3z8zC7/W1V14NaMLJdPccNQZ5BLOX8ldiGY9e9jOCbRW9qOO9Io0KLoanudulbTQUQUEuSrQ==","shasum":"e682011771bbefe670d2c0022106ea682311ad25","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-1.0.3.tgz","fileCount":7,"unpackedSize":1549831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIkuQV/sRYT8sJkWkdRbr/EVuNgTnP+X3vtly0OXzOkwIgGqj+gpJKS4g8cU2MaCgJ2xLdUPFz7wLHvtqlYXVSDjI="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_1.0.3_1706902848369_0.5434230278389287"},"_hasShrinkwrap":false},"1.0.4":{"name":"@dark-fusion-protocol/scl-wallet","version":"1.0.4","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@1.0.4","gitHead":"5f390ac0dbbcbb33871340814a97ce7bf3844520","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ZIIUZ2P3uubGMe4EOTku4M2vH3WJLnCulDB0+oixPoIE2THmckR3nyylP2yLgHjE8OKhnGTo3OwG2iKs/KlSgw==","shasum":"bc039cc5771d886436656f10ac9436141a405111","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-1.0.4.tgz","fileCount":7,"unpackedSize":1560301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD76oq4ZKtpDGISzwjkDRV6UMMiAwZtHQLgxwXaDZa24AIhALYaxU82uPsur9c9Aftb/vVsjw7Dwzih9KIBxr0TnIOF"}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_1.0.4_1707138232812_0.37793827559681503"},"_hasShrinkwrap":false},"1.0.5":{"name":"@dark-fusion-protocol/scl-wallet","version":"1.0.5","description":"SCL NPM Package","main":"scl_wallet.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"author":{"name":"Dark Fusion Protocol"},"license":"ISC","bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","_id":"@dark-fusion-protocol/scl-wallet@1.0.5","gitHead":"ddaa2fd3971b9c26a99387cdb3185038bac2d10e","types":"./scl_wallet.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-CaN6VTS2c3udneDpMA5YcAizKMRJBX+pgvLrX2iL/YYDt3PL12v7nzZJ/dPYWQENWwlsOr1YRd5ikEDEqYjlcQ==","shasum":"a2fa6f983c79e292b5f5073dfbbcdb0d6e315fb1","tarball":"https://registry.npmjs.org/@dark-fusion-protocol/scl-wallet/-/scl-wallet-1.0.5.tgz","fileCount":7,"unpackedSize":1696902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBaF/MxcgwvyCURS/ccmWeXRCjFP1Sm3AcQNdFu5q1gRAiALklgXHPGVNrbKjjZEd+idZLkJVhpGlyCxHMYapO0/fA=="}]},"_npmUser":{"name":"darkwhandem","email":"wyn@darkfusion.tech"},"directories":{},"maintainers":[{"name":"darkwhandem","email":"wyn@darkfusion.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scl-wallet_1.0.5_1709279140802_0.45278323581208135"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-29T09:58:21.609Z","0.0.1":"2024-01-29T09:58:21.959Z","modified":"2024-05-14T12:15:30.088Z","0.0.2":"2024-01-29T10:10:17.176Z","0.0.3":"2024-01-30T08:51:48.653Z","1.0.0":"2024-01-31T06:57:23.683Z","1.0.1":"2024-02-02T18:14:41.413Z","1.0.2":"2024-02-02T18:34:25.464Z","1.0.3":"2024-02-02T19:40:48.607Z","1.0.4":"2024-02-05T13:03:53.056Z","1.0.5":"2024-03-01T07:45:41.075Z"},"maintainers":[{"email":"finance@dfy.studio","name":"dfyfinance"},{"email":"mike@darkfusion.io","name":"deadkat"},{"email":"wyn@darkfusion.tech","name":"darkwhandem"}],"description":"SCL NPM Package","homepage":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm#readme","keywords":["SCL","BTC","web3","wallet","dark-fusion-protocol","dark-fusion"],"repository":{"type":"git","url":"git+https://github.com/Dark-Fusion-Protocol/scl-wallet-npm.git"},"author":{"name":"Dark Fusion Protocol"},"bugs":{"url":"https://github.com/Dark-Fusion-Protocol/scl-wallet-npm/issues"},"license":"ISC","readme":"# scl-wallet\n\nSCL Wallet NPM Package\n\n# NPM Library\n\n---\n\n# Initialization\n\n> [!NOTE]\n> An empty SCLWallet object must be created to use the library.\n```javascript\nimport SclWallet \n\nvar wallet = new SclWallet();\n```\n\n## Create Wallet\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| wallet_name | string | The name of the wallet. | \"WalletName\" |\n| password | string | The password of the wallet. | \"password\" |\n\n### Code\n\n```javascript\nconst result = await wallet.create_wallet(wallet_name, password);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"water danger cupboard garlic offer display lake boring piece clay identify giggle\"}``` | result | The wallet is created successfully. |\n| ```{\"Result\":\"Wallet already exists!\"}``` | result | The wallet has already been created with that name. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n\n## Init\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| wallet_name | string | The name of the wallet. | \"WalletName\" |\n| password | string | The password of the wallet. | \"password\" |\n| network | string | The network you are using (mainnet or testnet). | \"mainnet\" |\n| esplora_url | string | The address of the esplora you are using. | \"https://blockstream.info/\" |\n\n### Code\n\n```javascript\nconst result = await wallet.init(wallet_name, password, network, esplora_url);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"Wallet successfully loaded.\"}``` | result | The wallet is loaded successfully. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Decryption failed. Wrong password.\"}``` | error | The password is incorrect. |\n| ```{\"Error\":\"You need to call create wallet first!\"}``` | error | A wallet has not been created yet. |\n\n## Generate Wallet\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| wallet_name | string | The name of the wallet. | \"WalletName\" |\n| password | string | The password of the wallet. | \"password\" |\n| seed_phrase | string | The seed phrase generated on wallet creation. | \"water danger cupboard garlic offer display lake boring piece clay identify giggle\" |\n\n### Code\n\n```javascript\nconst result = await wallet.generate_wallet(wallet_name, password, seed_phrase);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"water danger cupboard garlic offer display lake boring piece clay identify giggle\"}``` | result | The wallet is created successfully. |\n| ```{\"Result\":\"Wallet already exists!\"}``` | result | The wallet has already been created with that name. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Invalid mnemonic.\"}``` | error | The mnemonic is invalid. |\n\n## Has Wallet\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| wallet_name | string | The name of the wallet. | \"WalletName\" |\n\n### Code\n\n```javascript\nconst result = await wallet.has_wallet(wallet_name);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"Wallet exists.\"}``` | result | The wallet exists. |\n| ```{\"Result\":\"No Wallet found.\"}``` | result | The wallet does not exist. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n\n## Generate Seed Phrase\n\n### Code\n\n```javascript\nconst result = wallet.gen_seed_phrase();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```\"water danger cupboard garlic offer display lake boring piece clay identify giggle\"``` | result | Generate the mnemonic. |\n\n## Get Mnemonic\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| password | string | The password of the wallet. | \"password\" |\n\n### Code\n\n```javascript\nconst result = await wallet.get_mnemonic(password);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"water danger cupboard garlic offer display lake boring piece clay identify giggle\"}``` | result | The mnemonic is returned. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Deserialization failed.\"}``` | error | There is an issue deserializing the mnemonic. |\n| ```{\"Error\":\"Decryption failed. Wrong password.\"}``` | error | The password is incorrect. |\n\n## Sync\n\n### Code\n\n```javascript\nconst result = await wallet.sync();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"Sync successful.\"}``` | result | The wallet has synced successfully. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | There is an issue with finding the esplora url/finding the address. |\n| ```{\"Error\":\"Failed to get result.\"}``` | error | There is an issue checking the UTXOs. |\n| \"Unable to deserialize response\" | error | There is an issue deserializing the UTXOs. |\n| \"error\" | error | There is an issue creating the url with the esplora_url and address. |\n\n## Sync SCL Balances\n\n### Code\n\n```javascript\nconst result = await wallet.sync_scl_balances_new();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"Sync successful.\"}``` | result | The wallet has synced successfully. |\n| ```{\"Error\":\"Error listing utxos.\"}``` | error | There is an issue with the unspent UTXOs. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Failed to get result.\"}``` | error | There is an issue checking the UTXOs. |\n| \"Unable to deserialize response\" | error | There is an issue deserializing the UTXOs. |\n\n---\n\n# BTC\n\n## Get Balance\n\n### Code\n\n```javascript\nconst result = wallet.get_balance();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"confirmed\":95900,\"unconfirmed\":0}``` | result | The confirmed and unconfirmed balances of BTC. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n\n## Send BTC\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| addresses | string | The addresses to send to. Seperate multiple addresses by a space. | \"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\" |\n| amount | string | The send amount in sats. Seperate multiple amounts by a space. | \"10000\" |\n| fee | int_64 | The transaction fee worked out in estimate_fee_btc. | 420 |\n\n### Code\n\n```javascript\nconst result = await wallet.send_btc(addresses, sats_amount, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"839efc9745c9e3711831f7e3c0fb848470108455f9f2c540c148d796a7dbeb21\"}``` | result | The transaction ID of the send transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Failed to parse address.\"}``` | error | The format of the address is incorrect. |\n| ```{\"Error\":\"Failed to parse amount.\"}``` | error | The format of the amount is incorrect. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to make this send transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the send transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the send transaction. |\n\n## Get BTC Transaction History\n\n### Code\n\n```javascript\nconst result = await wallet.get_btc_tx_history();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| *see example json below* | result | The transaction history for BTC. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ``` ``` | error | *response error* |\n\n```json\n[\n  {\n    \"txid\": \"ed01c5898573a44cec52f8ceb18f6b8f70cb9d1bd7d2c88da1e644b13e678ffa\",\n    \"version\": 2,\n    \"locktime\": 0,\n    \"vin\": [\n      {\n        \"txid\": \"87d03eee9ce5b6a5cbf08ca07f9b81eaedf7229b0a3f94f1b08b48ed19d09975\",\n        \"vout\": 2,\n        \"prevout\": {\n          \"scriptpubkey\": \"00147feb6476a7b287abb1d049da763071a686030dc0\",\n          \"scriptpubkey_asm\": \"OP_0 OP_PUSHBYTES_20 7feb6476a7b287abb1d049da763071a686030dc0\",\n          \"scriptpubkey_type\": \"v0_p2wpkh\",\n          \"scriptpubkey_address\": \"tb1q0l4kga48k2r6hvwsf8d8vvr356rqxrwq82m6sh\",\n          \"value\": 550\n        },\n        \"scriptsig\": \"\",\n        \"scriptsig_asm\": \"\",\n        \"witness\": [\n          \"304402201b94e03fe9d1bc8ca7239b874e02a80057c5e7e8a18afd198223d950f5dc58870220542679a3127daadb5fd8941981710a5a8709ca669569cefcacea672b83a0237001\",\n          \"023089049796ed85da5d03eaadf85436973516d326aa38e84bcaeaacc9add4c8eb\"\n        ],\n        \"is_coinbase\": false,\n        \"sequence\": 4294967295\n      },\n      {\n        \"txid\": \"87d03eee9ce5b6a5cbf08ca07f9b81eaedf7229b0a3f94f1b08b48ed19d09975\",\n        \"vout\": 3,\n        \"prevout\": {\n          \"scriptpubkey\": \"00147feb6476a7b287abb1d049da763071a686030dc0\",\n          \"scriptpubkey_asm\": \"OP_0 OP_PUSHBYTES_20 7feb6476a7b287abb1d049da763071a686030dc0\",\n          \"scriptpubkey_type\": \"v0_p2wpkh\",\n          \"scriptpubkey_address\": \"tb1q0l4kga48k2r6hvwsf8d8vvr356rqxrwq82m6sh\",\n          \"value\": 97950\n        },\n        \"scriptsig\": \"\",\n        \"scriptsig_asm\": \"\",\n        \"witness\": [\n          \"3045022100ab0a85c7f4a0631fb3a070d65efaef50495f9b90ce032f4e2d04afb06acde8d1022000c193034f3163fbb534f42739ae5f070f44f46d500cfdf254f77e146e3ccfb501\",\n          \"023089049796ed85da5d03eaadf85436973516d326aa38e84bcaeaacc9add4c8eb\"\n        ],\n        \"is_coinbase\": false,\n        \"sequence\": 4294967295\n      }\n    ],\n    \"vout\": [\n      {\n        \"scriptpubkey\": \"0014463cbe41a13b4f071f895e92c89901db245cddb0\",\n        \"scriptpubkey_asm\": \"OP_0 OP_PUSHBYTES_20 463cbe41a13b4f071f895e92c89901db245cddb0\",\n        \"scriptpubkey_type\": \"v0_p2wpkh\",\n        \"scriptpubkey_address\": \"tb1qgc7tusdp8d8sw8uft6fv3xgpmvj9ehdsmgwv8m\",\n        \"value\": 550\n      },\n      {\n        \"scriptpubkey\": \"6a208ff36829d648827b72caa4a693664a35b80b2b0c07c7e1bfa2f0749a2deb68a0\",\n        \"scriptpubkey_asm\": \"OP_RETURN OP_PUSHBYTES_32 8ff36829d648827b72caa4a693664a35b80b2b0c07c7e1bfa2f0749a2deb68a0\",\n        \"scriptpubkey_type\": \"op_return\",\n        \"value\": 0\n      },\n      {\n        \"scriptpubkey\": \"00147feb6476a7b287abb1d049da763071a686030dc0\",\n        \"scriptpubkey_asm\": \"OP_0 OP_PUSHBYTES_20 7feb6476a7b287abb1d049da763071a686030dc0\",\n        \"scriptpubkey_type\": \"v0_p2wpkh\",\n        \"scriptpubkey_address\": \"tb1q0l4kga48k2r6hvwsf8d8vvr356rqxrwq82m6sh\",\n        \"value\": 550\n      },\n      {\n        \"scriptpubkey\": \"00147feb6476a7b287abb1d049da763071a686030dc0\",\n        \"scriptpubkey_asm\": \"OP_0 OP_PUSHBYTES_20 7feb6476a7b287abb1d049da763071a686030dc0\",\n        \"scriptpubkey_type\": \"v0_p2wpkh\",\n        \"scriptpubkey_address\": \"tb1q0l4kga48k2r6hvwsf8d8vvr356rqxrwq82m6sh\",\n        \"value\": 95900\n      }\n    ],\n    \"size\": 445,\n    \"weight\": 1129,\n    \"fee\": 1500,\n    \"status\": {\n      \"confirmed\": true,\n      \"block_height\": 2576116,\n      \"block_hash\": \"00000000016d66d2436ce1a2923c6d59434906827ca077d457e2bc04d60488dc\",\n      \"block_time\": 1706536149\n    }\n  }\n]\n```\n\n---\n\n# SCL\n\n## Get SCL Balance\n\n### Code\n\n```javascript\nconst result = wallet.get_scl_balance();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ``` ``` | result | The confirmed and unconfirmed balances of all SCL assets. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ``` ``` | error | *response error* |\n\n## Send SCL\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| addresses | string | The addresses to send to. Seperate multiple addresses by a space. | \"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\" |\n| amount | string | The send amount in SCL. Seperate multiple amounts by a space. | \"10000\" |\n| contract_id | string | The ID of the contract. | \"792965f15b1d4254e547681832b9bdc3feb411bf2d80ce1a6b6bb22793880b6b\" |\n| fee | int_64 | The fee worked out in estimate_fee_scl. | 420 |\n\n### Code\n\n```javascript\nconst result = await wallet.send_scl(addresses, scl_amount, contract_id, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"892dd30adf026eea6d1c062af77405e441921c4907b0f77298ecdc8b18ec7c70\"}``` | result | The transaction ID of the send transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Failed to parse address.\"}``` | error | The format of the address is incorrect. |\n| ```{\"Error\":\"Failed to parse amount.\"}``` | error | The format of the amount is incorrect. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insuffienct funds.\"}``` | error | There is insufficient SCL assets to make this send transaction. |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this send transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the send transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the send transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the send transaction. |\n\n## Get Transaction History\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The ID of the contract being used. | \"792965f15b1d4254e547681832b9bdc3feb411bf2d80ce1a6b6bb22793880b6b\" |\n\n### Code\n\n```javascript\nconst result = await wallet.get_tx_history(contract_id);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ``` ``` | result | The transaction history for SCL assets. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ``` ``` | error | *response error* |\n\n---\n\n# Fees\n\n## Estimate Fee BTC\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| addresses | string | The addresses to send to. Seperate multiple addresses by a space. | \"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\" |\n| amount | string | The send amount in BTC. Seperate multiple amounts by a space. | \"63210\" |\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_btc(addresses, amount, number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"585\"}``` | result | The fee estimation for a BTC transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Failed to parse address.\"}``` | error | The format of the address is incorrect. |\n| ```{\"Error\":\"Failed to parse amount.\"}``` | error | The format of the amount is incorrect. |\n\n## Estimate Fee SCL\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| addresses | string | The addresses to send to. Seperate multiple addresses by a space. | \"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\" |\n| amount | string | The send amount in SCL. Seperate multiple amounts by a space. | \"125 150 4500\" |\n| contract_id | string | The id of the contract being used. | \"792965f15b1d4254e547681832b9bdc3feb411bf2d80ce1a6b6bb22793880b6b\" |\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_scl(addresses, amount, contract_id, number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"1685\"}``` | result | The fee estimation to send this SCL transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Failed to parse address.\"}``` | error | The format of the address is incorrect. |\n| ```{\"Error\":\"Failed to parse amount.\"}``` | error | The format of the amount is incorrect. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n\n## Estimate Fee Mint\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_mint(number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"1135\"}``` | result | The fee estimation to make this mint. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n\n## Estimate Fee List\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| list_order_json | string | A list of listings containing contract_id, amount, price_per_token. | *see example json below* |\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n```json\n{\n\t\"contract_id\": \"de3e6478bf37224a58be08ab7b8b7094400e0edcff5a829248b1fd02f5d7f0e1\",\n\t\"amount\": 100000,\n\t\"price_per_token\": 2500\n},\n{\n\t\"contract_id\": \"09f590fc69175307307af184c2c53358a40630eddce420a45b14a959b8d03bd3\",\n\t\"amount\": 100000,\n\t\"price_per_token\": 2500\n}\n```\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_list(list_order_json, number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"2270 585\"}``` | result | The fee estimation to make this listing. The actual fee followed by the hard fee. |\n| ```{\"Error\":\"Failed to deserialize list order json object.\"}``` | error | The list order json failed to deserialize. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n\n## Estimate Fee List Cancel\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| listing_utxo | string | The UTXO the listing is bound to. | \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548\" |\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_cancel_listing(list_order_json, number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"1100\"}``` | result | The fee estimation to cancel this listing. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Listing UTXO not in cabinet.\"}``` | error | The listing has already been successfully bid on.  |\n\n## Estimate Fee Bid\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| bid_order_json | string |  A list of bids containing a list of contracts with their associated orders. | *see example json below* |\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n```json\n{\n\t\"contract_id\": \"de3e6478bf37224a58be08ab7b8b7094400e0edcff5a829248b1fd02f5d7f0e1\",\n\t\"orders\": [\n\t\t{\n\t\t\t\"order_id\": \"06d9a1a4b1c6a622de362a51567b010979898aa9891ca71a5a56596dbfbc38e8\",\n\t\t\t\"purchase_amount\": 100000,\n\t\t\t\"purchase_price\": 2500,\n\t\t\t\"pay_address\": \"tb1qategau6gdfakhhf4n23dtg47eht6225ypfcvv2\",\n\t\t\t\"listing_utxo\": \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548:1\"\n\t\t},\n\t\t{\n\t\t\t\"order_id\": \"25bf5e449ccb2c817e2323b571f96f694ff53c89cca88dd40ec93bf83d2eb443\",\n\t\t\t\"purchase_amount\": 10000,\n\t\t\t\"purchase_price\": 4500,\n\t\t\t\"pay_address\": \"tb1qategau6gdfakhhf4n23dtg47eht6225ypfcvv2\",\n\t\t\t\"listing_utxo\": \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548:1\"\n\t\t}\n\t]\n}\n```\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_bid(bid_order_json, number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"585\"}``` | result | The fee estimation for bidding on this listing. |\n| ```{\"Error\":\"Failed to deserialize bid order json object.\"}``` | error | The bid order json failed to deserialize. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n\n## Estimate Fee Bid Cancel\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_cancel_bid(number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"585\"}``` | result | The fee estimation for cancelling this bid. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n\n## Estimate Fee Airdop\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| number_of_airdops | int_32 | The number of airdrops. | 125 |\n| number_of_blocks | int_32 | The number of blocks for fee estimation. The lower the number, the higher the fee. | 5 |\n\n### Code\n\n```javascript\nconst result = await wallet.estimate_fee_airdrop(number_of_airdops, number_of_blocks);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"16141\"}``` | result | The fee estimation to claim this airdrop. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n\n---\n\n# Contracts\n\n## Import Contract\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_json | string | The serialized json of the contract. | *see example json below* |\n\n```json\n{\n\t\"contract_id\":\"bdcdc39f36353082e4bc1025bb45ab7a50afe07950355a1fed4640ce8f469b60\",\n\t\"ticker\":\"TEST 200\",\n\t\"rest_url\":\"http://13.23.87.456:8080/\",\n\t\"contract_type\":\"SCL01\",\n\t\"decimals\":8\n}\n```\n\n### Code\n\n```javascript\nconst result = await wallet.import_contract(contract_json);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"Import successful.\"}``` | result | The contract was imported successfully. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n\n## Delete Contract\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The id of the contract to be deleted. | \"792965f15b1d4254e547681832b9bdc3feb411bf2d80ce1a6b6bb22793880b6b\" |\n\n### Code\n\n```javascript\nconst result = await wallet.delete_contract(contract_id);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"Delete successful.\"}``` | result | The contract was deleted successfully. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract doesn't exist in db.\"}``` | error | The contract does not exist in the wallet. |\n\n## Get Contract\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The id of the contract to get. | \"792965f15b1d4254e547681832b9bdc3feb411bf2d80ce1a6b6bb22793880b6b\" |\n\n### Code\n\n```javascript\nconst result = await wallet.get_contract(contract_id);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ``` ``` | result | The contract was gotten successfully. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n\n## Get Contracts\n\n### Code\n\n```javascript\nconst result = await wallet.get_contracts();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ``` ``` | result | The contracts were gotten successfully. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n\n---\n\n# Minting\n\n## Mint SCL01 Contract\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| ticker | string | The name of the SCL asset. | \"SMOL\" |\n| max_supply | string | The max supply of SCL assets. | \"31415900000000\" |\n| decimals | string | The number of decimals the SCL asset has. | \"8\" |\n| fee | int_64 | The fee worked out in estimate_fee_mint. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.mint_scl01_contract(ticker, max_supply, decimals, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"5e73fe53cf33648755899f9f8252d969d7d36808f7339f8fe67033b1430f9987\"}``` | result | The transaction ID of the mint transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to mint this contract. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the mint transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the mint transaction. |\n\n## Mint SCL02 Contract\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| ticker | string | The name of the SCL asset. | \"ELON\" |\n| max_supply | string | The max supply of SCL assets. | \"42069420690\" |\n| decimals | string | The number of decimals the SCL asset has. | \"8\" |\n| fee | int_64 | The fee worked out in estimate_fee_mint. | 1756 |\n| airdrop_amount | string | The amount of SCL assets per airdop. | 420690 |\n\n### Code\n\n```javascript\nconst result = await wallet.mint_scl02_contract(ticker, max_supply, decimals, fee, airdrop_amount);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"0eebc6baa4463e8f0f9f8cf31440ed12e9f312671b334de97e338380ee1f5cc1\"}``` | result | The transaction ID of the mint transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to mint this contract. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the mint transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the mint transaction. |\n\n## Mint SCL03 Contract\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| ticker | string | The name of the SCL asset. | \"DFG\" |\n| decimals | string | The number of decimals the SCL asset has. | \"8\" |\n| address | string | The address of the minted assets. Seperate multiple addresses by a space. | \"tb1qlh458zyuv4kc9g4pawvczss0tz09ht0u28e7u3\" |\n| amount | string | The amount of SCL assets minted. Seperate multiple amounts by a space. | \"10000000000000000\" |\n| fee | int_64 | The fee worked out in estimate_fee_mint. | 1756 |\n\n\n### Code\n\n```javascript\nconst result = await wallet.mint_scl03_contract(ticker, decimals, address, amount, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"adc110d77942e3e4ca9f2c585249a8d3b82d5b5a82563a0a01e9c591837d99d5\"}``` | result | The transaction ID of the mint transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Failed to parse address.\"}``` | error | There is an issue with the parsing one of the addresses. |\n| ```{\"Error\":\"Failed to parse amount.\"}``` | error | There is an issue with the parsing one of the amounts. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to mint this contract. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the mint transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the mint transaction. |\n\n\n## Right to Mint\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| rights_utxo | string | The UTXO that has the right to mint. | \"\" |\n| rights_address | string | The address that has the right to mint. | \"\" |\n| fee | int_64 | The fee worked out in estimate_fee_mint. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.mint_token_rtm(rights_utxo, rights_address, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"005974de174aa8319ee829fafe25b5e43848ce3965970b228a7b64c8a5e9b522\"}``` | result | The transaction ID of the right to mint transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Failed to parse rights address.\"}``` | error | There is an issue with the parsing the rights address. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to mint this contract. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the mint transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the mint transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the right to mint payload. |\n\n---\n\n# Listing\n\n## Create Listing\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| list_order_json | string | An array of listings. | *see example json below* |\n| fee | int_64 | The fee worked out in estimate_fee_list. The actual fee followed by the hard fee. | \"1756 585\" |\n\n```json\n{\n\t\"contract_id\": \"de3e6478bf37224a58be08ab7b8b7094400e0edcff5a829248b1fd02f5d7f0e1\",\n\t\"amount\": 100000,\n\t\"price_per_token\": 2500\n},\n{\n\t\"contract_id\": \"09f590fc69175307307af184c2c53358a40630eddce420a45b14a959b8d03bd3\",\n\t\"amount\": 100000,\n\t\"price_per_token\": 2500\n}\n```\n\n### Code\n\n```javascript\nconst result = await wallet.list_token_batch(list_order_json, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"c894c5c8ea21bfe8c9aa0d9295db235ad74ec307ed4a493c06dd0393288608f7\"}``` | result | The transaction ID of the listing transaction. |\n| ```{\"Error\":\"Failed to deserialize list order json object.\"}``` | error | The list order json failed to deserialize. |\n| ```{\"Error\":\"Invalid fee estimation string.\"}``` | error | The format of the fee is incorrect. |\n| ```{\"Error\":\"Failed to parse fee.\"}``` | error | There is an issue parsing the actual/hard fee. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insuffient token funds.\"}``` | error | There are not enough tokens to make this listing transaction. |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this listing transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the listing transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the listing transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the listing payload. |\n\n## Cancel Listing\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| listing_utxo | string | The UTXO the listing is bound to. | \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548\" |\n| fee | int_64 | The fee worked out in estimate_fee_list_cancel. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.cancel_listing(listing_utxo, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"c6dee0b8c41255ddd4faba2916b37797a5c0632ba56fa597c72471fa8fde39f3\"} ``` | result | The transaction ID of the cancel listing transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Listing UTXO not in cabinet.\"}``` | error | The listing has already been successfully bid on.  |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this cancel listing transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the cancel listing transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the cancel listing transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the cancel listing payload. |\n\n---\n\n# Bidding\n\n## Create Bid\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| bid_order_json | string | An array of bids containing a array of contracts with their associated bids.  | *see example json below* |\n| fee | int_64 | The fee worked out in estimate_fee_bid. | 1756 |\n\n```json\n{\n\t\"contract_id\": \"de3e6478bf37224a58be08ab7b8b7094400e0edcff5a829248b1fd02f5d7f0e1\",\n\t\"orders\": [\n\t\t{\n\t\t\t\"order_id\": \"06d9a1a4b1c6a622de362a51567b010979898aa9891ca71a5a56596dbfbc38e8\",\n\t\t\t\"purchase_amount\": 100000,\n\t\t\t\"purchase_price\": 2500,\n\t\t\t\"pay_address\": \"tb1qategau6gdfakhhf4n23dtg47eht6225ypfcvv2\",\n\t\t\t\"listing_utxo\": \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548:1\"\n\t\t},\n\t\t{\n\t\t\t\"order_id\": \"25bf5e449ccb2c817e2323b571f96f694ff53c89cca88dd40ec93bf83d2eb443\",\n\t\t\t\"purchase_amount\": 10000,\n\t\t\t\"purchase_price\": 4500,\n\t\t\t\"pay_address\": \"tb1qategau6gdfakhhf4n23dtg47eht6225ypfcvv2\",\n\t\t\t\"listing_utxo\": \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548:1\"\n\t\t}\n\t]\n}\n```\n\n### Code\n\n```javascript\nconst result = await wallet.place_bid_batch(bid_order_json, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"0195788746a3aef6d84385e908b4eb9328b98d1d08e0c7741ae8726c5d672d76\"}``` | result | The transaction ID of the bid transaction. |\n| ```{\"Error\":\"Failed to deserialize bid order json object.\"}``` | error | The bid_order_json failed to deserialize. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insuffient funds.\"}``` | error | There is insufficient BTC to make this listing transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the bid transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the bid transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the bid payload. |\n\n## Accept Bid\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| unsigned_tx_hex | string |  | \"0200000001900327a4f57651ac442c35066dcaaa6e17de5c7510277b5fa42565a60fa6e87a0100000000ffffffff022602000000000000160014f3c7491bedda954b105ee60e7a32d7aee6e685860000000000000000226a20da1ecba9ebbf936b53c940a22e1bda3a16492871faa63054906d74a15a6de66c00000000\" |\n| fulfil_tx | string |  | \"02000000000102b5ba860041b15437601ab4bf2c54ccf5d9f7ae757f08ac8a467b3c97f654bd350000000000ffffffff378695168ed4aa95bcf572b6250f91d7aaa85caa04a9330f3e188a0448d6cb660000000000ffffffff032602000000000000160014f3c7491bedda954b105ee60e7a32d7aee6e685862d00000000000000160014eaf28ef3486a7b6bdd359aa2d5a2becdd7a52a840000000000000000226a20ad18a45f73df467ffea6fcecbf1574b7841fda0fd1be948a48118f9583757f1902483045022100bfa467b40a6715079b7d3e07be92447de2e61c21458702d9b1365894f75591df0220429005625d57e4ea44d46459a2a0768d3732dce1c746d2cc801e8528c1a793580121036674a057f385a5a8a74dfbd457711f282b9ea28cb781422cbbd6b6f42d9ab6c702483045022100f5a73800f696a877d5f5194e3a3daefebc27601ddcbfeae5946ff0daca213ed802204fa7939d43efa79fd37758bf70288a7743d50a0b4ab10e17800f0b55763457030121036674a057f385a5a8a74dfbd457711f282b9ea28cb781422cbbd6b6f42d9ab6c700000000\" |\n| contract_id | string |  | \"792965f15b1d4254e547681832b9bdc3feb411bf2d80ce1a6b6bb22793880b6b\" |\n\n### Code\n\n```javascript\nconst result = await wallet.accept_bid(unsigned_tx_hex, fulfil_tx, contract_id);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ``` ``` | result | The transaction ID of the accept bid transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Invalid Accept TX.\"}``` | error | The unsigned_tx_hex is invalid. |\n| ```{\"Error\":\"Invalid Fulfil TX.\"}``` | error | The fulfil_tx is invalid. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Failed to deserialize tx.\"}``` | error | There is an issue deserializing the unsigned_tx_hex. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the accept bid transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the accept bid transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the accept bid payload. |\n\n## Cancel Bid\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| bid_utxo | string | The UTXO the bid is bound to. | \"dba8b3df2aaaa9c9a9e61a4ac61f2fabe5bd6cb2682dc4a17cbf9af3ae16e548\" |\n| fee | int_64 | The fee worked out in estimate_fee_bid_cancel. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.cancel_bid(bid_utxo, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"243afbb1aa0c3e04f8b165416d3ee02ce175f22dae1b997d7ba06d12e88e388f\"``` | result | The transaction ID of the cancel bid transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Bidding UTXO not in cabinet.\"}``` | error | The bid has already been successfully accepted.  |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this cancel bid transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the cancel bid transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the cancel bid transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the cancel bid payload. |\n\n---\n\n# Airdrop\n\n## Claim Airdrop\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_ids | string | The IDs of the contracts that is being claimed. Seperate multiple contracts by a space. | \"09f590fc69175307307af184c2c53358a40630eddce420a45b14a959b8d03bd3\" |\n| fee | int_64 | The fee worked out in estimate_fee_airdop. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.airdrop(contract_ids, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"04affa741549ea4f9f2f331a36f83906b558862bf2e70bef833ef1f8e14bc3f2\"} ``` | result | The transaction ID of the claim airdrop transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to make this claim airdrop transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the claim airdrop transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the claim airdrop transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the claim airdrop payload. |\n\n## Create Diminishing Airdrop\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The ID of the contract. | \"3b1b20518485ec89ce9acf5bb23c5ccdb0ac26d0661e377014e894d295eec29e\" |\n| pool_amount | string | The total amount available to be airdropped. | \"40000000000000\" |\n| stepdown_amount | string | The amount the airdrop diminishes by per step. | \"10\" |\n| stepdown_period | string | The amount of claims before the airdrop diminishes. | \"160\" |\n| max_amount | string | The first airdrop amount that will be received at the beginning of the stepdown period. | \"250\" |\n| min_amount | string | The last airdrop amount that will be received at the end of the stepdown period. | \"50\" |\n| single_drop | string | Indicates if multiple claims can be made from one address or not. Either true/false. | \"true\" |\n| fee | int_64 | The fee worked out in estimate_fee_scl. | 1756 |\n\n\n### Code\n\n```javascript\nconst result = await wallet.create_diminishing_airdrop(contract_id, pool_amount, stepdown_amount, stepdown_period, max_amount, min_amount, single, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result:\"06d9a1a4b1c6a622de362a51567b010979898aa9891ca71a5a56596dbfbc38e8\"}``` | result | The transaction ID of the create diminishing airdrop transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient SCL to make this create diminishing airdrop transaction. |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this create diminishing airdrop transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the create diminishing airdrop transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the create diminishing airdrop transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the create diminishing airdrop payload. |\n\n\n## Claim Diminishing Airdrop\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The ID of the contract. | \"\" |\n| dimairdop_id | string | The ID of the Diminishing Airdrop. | \"\" |\n| fee | int_64 | The fee worked out in estimate_fee_airdrop. | 685 |\n\n### Code\n\n```javascript\nconst result = await wallet.claim_diminishing_airdrop(contract_id, dimairdop_id, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result:\"5af05854e32ee9f92315253b1606d3bb82b7683f0b56456b9744a5d9b0e7951f\"}``` | result | The transaction ID of the claim diminishing airdrop transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient BTC to make this claim diminishing airdrop transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the claim diminishing airdrop transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the claim diminishing airdrop transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the claim diminishing airdrop payload. |\n\n---\n\n# Drips\n\n## Create Drip\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| addresses | string | The addresses to drip to. Seperate multiple addresses by a space. | \"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\" |\n| amount | string | The drip amount in sats. Seperate multiple amounts by a space. | \"10000\" |\n| contract_id | string | The ID of the contract. | \"3b1b20518485ec89ce9acf5bb23c5ccdb0ac26d0661e377014e894d295eec29e\" |\n| duration | string | The amount of blocks the drip will be active for | \"12960\" |\n| fee | int_64 | The fee worked out in estimate_fee_scl. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.drip_scl(addresses, amount, contract_id, duration, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ``` ``` | result | The transaction ID of the create drip transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Failed to parse address.\"}``` | error | The format of the address is incorrect. |\n| ```{\"Error\":\"Failed to parse amount.\"}``` | error | The format of the amount is incorrect. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient SCL to make this create drip transaction. |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this create drip transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the create drip transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the create drip transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the create drip payload. |\n\n\n## Create DGE\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The ID of the contract. | \"3b1b20518485ec89ce9acf5bb23c5ccdb0ac26d0661e377014e894d295eec29e\" |\n| pool_amount | string | The total amount of tokens put up for DGE. | \"700000000000000\" |\n| sats_rate | string | The amount of sats exchanged per token. | \"5351\" |\n| max_drop | string | The upper limit (in tokens) per drop. | \"70000000000\" |\n| drip_duration | string | How long the drip should last measured in number of blocks. | \"12960\" |\n| donation_address | string | The address the donations go to. | \"tb1qlh458zyuv4kc9g4pawvczss0tz09ht0u28e7u3\" |\n| single_drop | string | Indicates if multiple claims can be made from one address or not. Either true/false. | \"true\" |\n| fee | int_64 | The fee worked out in estimate_fee_scl. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.create_dge(contract_id, pool_amount, sats_rate, max_drop, drip_duration, donation_address, single_drop, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"8c6be55f904d5711b6a3edb7921981fcdbe4e9b67c98ac06e0c0b9b121dc070c\"}``` | result | The transaction ID of the create dge transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient SCL to make this create dge transaction. |\n| ```{\"Error\":\"Not enough BTC to cover fees.\"}``` | error | There is insufficient BTC to make this create dge transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the create dge transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the create dge transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the create dge payload. |\n\n\n## Claim DGE\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| contract_id | string | The ID of the contract. | \"3b1b20518485ec89ce9acf5bb23c5ccdb0ac26d0661e377014e894d295eec29e\" |\n| dge_id | string | The first spender UTXO from the create dge command. | \"782f9b6e1329a400bb0f6dc3b678a1b3a0c3a8186b44d5cd7b82b19478264548:0\" |\n| donation_address | string | The address the donations go to. | \"tb1qlh458zyuv4kc9g4pawvczss0tz09ht0u28e7u3\" |\n| amount | string | The amount that is getting donated in sats. | \"45000\" |\n| fee | int_64 | The fee worked out in estimate_fee_airdrop. | 1756 |\n\n### Code\n\n```javascript\nconst result = await wallet.claim_dge(contract_id, dge_id, donation_address, amount, fee);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"45dde82c8282be5c59c65456d7e2b6111fd66426fd59bb87d53bb94bc1e56dba\"}``` | result | The transaction ID of the claim dge transaction. |\n| ```{\"Error\":\"Wallet needs to sync.\"}``` | error | The wallet has not synced yet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The wallet is not initialized. |\n| ```{\"Error\":\"Failed to parse donation address.\"}``` | error | There is an issue with the parsing the donation address. |\n| ```{\"Error\":\"Database error.\"}``` | error | There is an issue with the indexedDB. |\n| ```{\"Error\":\"Contract not found.\"}``` | error | The contract ID is not in the wallet. |\n| ```{\"Error\":\"Insufficient funds.\"}``` | error | There is insufficient VTC to make this claim dge transaction. |\n| ```{\"Error\":\"Failed to deserialize transaction.\"}``` | error | There is an issue deserializing the claim dge transaction. |\n| ```{\"Error\":\"Failed to broadcast transaction.\"}``` | error | There is an issue broadcasting the claim dge transaction. |\n| ```{\"Error\":\"Failed to broadcast payload.\"}``` | error | There is an issue broadcasting the claim dge payload. |\n\n---\n\n# Utilities\n\n## New Address\n\n### Code\n\n```javascript\nconst result = wallet.new_address();\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| ```{\"Result\":\"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\"}``` | result | The address of the wallet. |\n| ```{\"Error\":\"Wallet not initialized.\"}``` | error | The address is invalid. |\n\n## Is Address\n\n### Parameters\n\n| Parameter | Type | Description | Example |\n|---|---|---|---|\n| address | string | The address of the wallet. | \"tb1qgc0pnx734s3kt8n875u2cqtum0vrk5re3nfrj3\" |\n\n### Code\n\n```javascript\nconst result = wallet.is_address(address);\n```\n\n### Results\n\n| Output | Type | Description |\n|---|---|---|\n| true | result | The address is valid. |\n| false | result | The address is invalid. |\n\n---\n\n","readmeFilename":"README.md"}