現象
SugarでNFTを作成しようとしたところ、「insufficient fee-payer funds」エラーが発生。
ターミナル:
% sugar launch
Starting Sugar launch... 🚀
>>> sugar validate
[1/1] 🗂 Loading assets
▪▪▪▪▪ Validating 2 metadata file(s)...
Validation complete, your metadata file(s) look good.
>>> sugar upload
[1/4] 🗂 Loading assets
Found 2 asset pair(s), uploading files:
+--------------------+
| images | 2 |
| metadata | 2 |
+--------------------+
[2/4] 🖥 Initializing upload
▪▪▪▪▪ Connected
Funding address:
-> pubkey: HXtBm8XZbxaTt41uqaKhwUAa6Z1aPyvJdsZVENiWsetg
-> lamports: 315212 (◎ 0.000315212)
🛑 Error running command (re-run needed): unable to confirm transaction. This can happen in situations such as transaction expiration and insufficient fee-payer funds
config.json:
{
"price": 0.000001,
"number": 1,
"gatekeeper": null,
"creators": [
{
"address": "HXtBm8XZbxaTt41uqaKhwUAa6Z1aPyvJdsZVENiWsetg",
"share": 100
}
],
"solTreasuryAccount": "HXtBm8XZbxaTt41uqaKhwUAa6Z1aPyvJdsZVENiWsetg",
"splTokenAccount": null,
"splToken": null,
"goLiveDate": "1 Jan 2023 00:00:00 +0000",
"endSettings": null,
"whitelistMintSettings": null,
"hiddenSettings": null,
"freezeTime": null,
"uploadMethod": "bundlr",
"retainAuthority": true,
"isMutable": true,
"symbol": "K",
"sellerFeeBasisPoints": 500,
"awsS3Bucket": null,
"nftStorageAuthToken": null,
"shdwStorageAccount": null
}
原因
0.000315212 SOL必要になるが、price設定を0.000001 SOLにしていたため、金額が足りていない。
Funding address:
-> pubkey: HXtBm8XZbxaTt41uqaKhwUAa6Z1aPyvJdsZVENiWsetg
-> lamports: 315212 (◎ 0.000315212)
念のため、自分の残高も見ておくよい。
% solana balance
23.475984489 SOL
対応
priceを変更する。
config.json:
{
"price": 0.0004, // ← NFT発行のlamportsにあわせて修正