To associate an existing smart contract service with a new application, you must first create the application and then associate the service with it. You can associate one application with multiple smart contract services. You can also revoke an application key's authorization. After the authorization is revoked, the application is no longer associated with any smart contract service.
Create an application
Go to the Smart Contract Marketplace. In the navigation pane on the left, select Application Authorization Management.
Click Create Application and then click OK in the dialog box that appears.
The new application appears in the list.
NoteThe application key for a new application is masked by default. To view the key in plaintext, click the
icon on the right and confirm the action. To mask the key again, click the
icon.
Manage application authorization relationships
Associate a Contract
You can associate a smart contract service with an application. After the association is complete, you can use the application's AccessKey (AK) and application key to invoke the OpenAPI on the target chain.
On the Application Authorization Management page, find the target application. In the Operation column, click Associate Smart Contract.
In the dialog box that appears, select one or more smart contract services to associate and then click OK.
The associated services are now displayed in the Smart Contract Service Name column for the application.
Revoke authorization
Revoking an application's authorization removes all of its associated smart contract services.
On the Application Authorization Management page, find the target application. In the Operation column, click Revoke Application Key Authorization.
In the confirmation dialog box, click Confirm.
The associated smart contract services are then purged from the Smart Contract Service Name column for the application.