PermissionedDomainSet
許可型ドメインを作成するか、所有するドメインを変更します。
(PermissionedDomains amendmentが必要です )
PermissionedDomainSetのJSONの例
{
"TransactionType": "PermissionedDomainSet",
"Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
"Fee": "10",
"Sequence": 390,
"AcceptedCredentials": [
{
"Credential": {
"Issuer": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
"CredentialType": "6D795F63726564656E7469616C"
}
}
]
}
PermissionedDomainSet フィールド
共通フィールドに加えて、PermissionedDomainSetトランザクションは以下のフィールドを使用します。
フィールド | JSONの型 | 内部の型 | 必須? | 説明 |
---|---|---|---|---|
DomainID | 文字列 - ハッシュ | Hash256 | いいえ | 変更する既存の許可型ドメインのレジャーエントリID。省略すると、新しい許可型ドメインが作成されます。 |
AcceptedCredentials | 配列 | Array | はい | このドメインへのアクセスを許可する1から10個のAccepted Credentialsオブジェクトのリスト。リストはソートする必要はありませんが、重複ことはできません。既存のドメインを変更する場合、このリストは既存のリストを置き換えます。 |
Each member of the AcceptedCredentials
array is an inner object named Credential
with the following nested fields:
Field | JSON Type | [Internal Type][] | Required? | Description |
---|---|---|---|---|
Issuer | String - [Address][] | AccountID | Yes | The issuer of the credential. |
CredentialType | String | Blob | Yes | The type of credential, as hexadecimal. This is an arbitrary value from 1 to 64 bytes that the issuer sets when they issue a credential. |
Note
In the usual JSON format, inner objects are wrapped in an object with one field, whose name defines the inner object type. In this case, the wrapping field is named Credential
. For example:
"AcceptedCredentials": [
{
"Credential": {
"Issuer": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
"CredentialType": "6D795F63726564656E7469616C"
}
},
// ... additional Credential inner objects ...
]
PermissionedDomainSetのフラグ
PermissionedDomainSetトランザクションには、フラグは定義されていません。
エラーケース
すべてのトランザクションで発生する可能性のあるエラーに加えて、PermissionedDomainSetトランザクションでは、次のトランザクション結果コードが発生する可能性があります。
エラーコード | 説明 |
---|---|
tecDIR_FULL | このトランザクションは、新しい許可型ドメインを作成しますが、送信者の所有者ディレクトリがいっぱいです。 |
tecINSUFFICIENT_RESERVE | このトランザクションは、新しい許可型ドメインを作成しますが、送信者が増加分の所有者準備金を満たす十分なXRPを持っていません。 |
tecNO_ENTRY | このトランザクションは、存在しないドメインを変更しようとしました。トランザクションのDomainID フィールドを確認してください。 |
tecNO_ISSUER | AcceptedCredentials フィールドで指定された発行者の少なくとも1つがXRP Ledgerに存在しません。配列の各メンバーのIssuer フィールドを確認してください。 |
tecNO_PERMISSION | このトランザクションは、既存のドメインを変更しようとしましたが、トランザクションの送信者は指定されたドメインの所有者ではありません。 |
temDISABLED | PermissionedDomains amendmentが有効ではないか、またはCredentials amendmentが有効ではありません。 |