Add API Code handling

Used when the wallet was created using Blockchain "Create Wallet API"